mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
px4io: checkcrc warn on mismatch
This commit is contained in:
@@ -3016,7 +3016,7 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg)
|
|||||||
ret = io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_FORCE_SAFETY_ON, PX4IO_FORCE_SAFETY_MAGIC);
|
ret = io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_FORCE_SAFETY_ON, PX4IO_FORCE_SAFETY_MAGIC);
|
||||||
|
|
||||||
if (ret != PX4_OK) {
|
if (ret != PX4_OK) {
|
||||||
PX4_ERR("IO refused to re-enable safety");
|
PX4_WARN("IO refused to re-enable safety");
|
||||||
}
|
}
|
||||||
|
|
||||||
// set new status
|
// set new status
|
||||||
@@ -3027,7 +3027,7 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg)
|
|||||||
ret = io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_REBOOT_BL, arg);
|
ret = io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_REBOOT_BL, arg);
|
||||||
|
|
||||||
if (ret != PX4_OK) {
|
if (ret != PX4_OK) {
|
||||||
PX4_ERR("IO refused to reboot");
|
PX4_WARN("IO refused to reboot");
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -3292,7 +3292,7 @@ checkcrc(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ret != OK) {
|
if (ret != OK) {
|
||||||
PX4_ERR("check CRC failed: %d, CRC: %" PRIu32, ret, fw_crc);
|
PX4_WARN("check CRC failed: %d, CRC: %" PRIu32, ret, fw_crc);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -3498,7 +3498,7 @@ px4io_main(int argc, char *argv[])
|
|||||||
g_dev = nullptr;
|
g_dev = nullptr;
|
||||||
|
|
||||||
if (ret != OK) {
|
if (ret != OK) {
|
||||||
PX4_ERR("reboot failed - %d, still attempting upgrade", ret);
|
PX4_WARN("reboot failed - %d, still attempting upgrade", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
PX4IO_Uploader *up;
|
PX4IO_Uploader *up;
|
||||||
|
|||||||
Reference in New Issue
Block a user