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