mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
HAL_ChibiOS: fixed gcc9 warnings
This commit is contained in:
1 parent
fabbbea0b4
commit
90cd2a38b6
3 files changed
+6
-5
No files matched your search
@@ -83,7 +83,7 @@ static void save_fault_watchdog(uint16_t line, FaultType fault_type, uint32_t fa
|
||||
pd.fault_thd_prio = tp->prio;
|
||||
// get first 4 bytes of the name, but only of first fault
|
||||
if (tp->name && pd.thread_name4[0] == 0) {
|
||||
strncpy(pd.thread_name4, tp->name, 4);
|
||||
strncpy_noterm(pd.thread_name4, tp->name, 4);
|
||||
}
|
||||
}
|
||||
pd.fault_icsr = SCB->ICSR;
|
||||
|
||||
Reference in new issue
Block a user