mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 06:07:35 +08:00
add timer validation call
This commit is contained in:
committed by
Lorenz Meier
parent
b5169b0c7b
commit
bbebf980d8
@@ -412,8 +412,12 @@ void io_timer_force_update()
|
||||
{
|
||||
for (int i = 0; i < MAX_IO_TIMERS; i++) {
|
||||
if (timer_freq[i] == 8) {
|
||||
// force update of channel compare register
|
||||
rEGR(i) |= GTIM_EGR_UG;
|
||||
int rv = io_timer_validate_channel_index(i);
|
||||
|
||||
if (rv == 0) {
|
||||
// force update of channel compare register
|
||||
rEGR(i) |= GTIM_EGR_UG;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user