mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Bootloader: fixed sys lock for timer
This commit is contained in:
parent
1fa0a2eeca
commit
9013c15f4d
@ -130,9 +130,9 @@ volatile unsigned timer[NTIMERS];
|
||||
*/
|
||||
static void sys_tick_handler(void *ctx)
|
||||
{
|
||||
chSysLock();
|
||||
chSysLockFromISR();
|
||||
chVTSetI(&systick_vt, chTimeMS2I(1), sys_tick_handler, nullptr);
|
||||
chSysUnlock();
|
||||
chSysUnlockFromISR();
|
||||
uint8_t i;
|
||||
for (i = 0; i < NTIMERS; i++)
|
||||
if (timer[i] > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user