diff options
-rw-r--r-- | src/drivers/hmc5883/hmc5883.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp index 3a3848446..5bf88da3d 100644 --- a/src/drivers/hmc5883/hmc5883.cpp +++ b/src/drivers/hmc5883/hmc5883.cpp @@ -1490,8 +1490,9 @@ start(enum HMC5883_BUS busid, enum Rotation rotation) started |= start_bus(bus_options[i], rotation); } - if (!started) - errx(1, "driver start failed"); + if (!started) { + exit(1); + } } /** |