Browse Source

AP_RangeFinder: Change rangefinder number 10 to A

zr-v5.1
murata 4 years ago committed by Peter Barker
parent
commit
bbc673c668
  1. 2
      libraries/AP_RangeFinder/AP_RangeFinder.cpp

2
libraries/AP_RangeFinder/AP_RangeFinder.cpp

@ -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;
}
}

Loading…
Cancel
Save