|
|
|
@ -761,7 +761,7 @@ bool RangeFinder::prearm_healthy(char *failure_msg, const uint8_t failure_msg_le
@@ -761,7 +761,7 @@ bool RangeFinder::prearm_healthy(char *failure_msg, const uint8_t failure_msg_le
|
|
|
|
|
{ |
|
|
|
|
for (uint8_t i = 0; i < RANGEFINDER_MAX_INSTANCES; i++) { |
|
|
|
|
if (((Type)params[i].type.get() != Type::NONE) && (drivers[i] == nullptr)) { |
|
|
|
|
hal.util->snprintf(failure_msg, failure_msg_len, "Rangefinder %d was not detected", i + 1); |
|
|
|
|
hal.util->snprintf(failure_msg, failure_msg_len, "Rangefinder %X was not detected", i + 1); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|