diff --git a/src/drivers/magnetometer/rm3100/rm3100.cpp b/src/drivers/magnetometer/rm3100/rm3100.cpp index 2bc5ebbf37..9e42922367 100644 --- a/src/drivers/magnetometer/rm3100/rm3100.cpp +++ b/src/drivers/magnetometer/rm3100/rm3100.cpp @@ -123,9 +123,9 @@ int RM3100::self_test() // If the x, y, or z LR oscillators malfunctioned then the self test failed. if ((cmd & BIST_XYZ_OK) ^ BIST_XYZ_OK) { PX4_ERR("built-in self test failed: 0x%2X x:%s y:%s z:%s", cmd, - cmd & 0x10 ? "Pass" : "Fail", - cmd & 0x20 ? "Pass" : "Fail", - cmd & 0x40 ? "Pass" : "Fail" ); + cmd & 0x10 ? "Pass" : "Fail", + cmd & 0x20 ? "Pass" : "Fail", + cmd & 0x40 ? "Pass" : "Fail" ); return PX4_ERROR; } else {