Skip to content
Snippets Groups Projects
Commit bbebf980 authored by Mark Whitehorn's avatar Mark Whitehorn Committed by Lorenz Meier
Browse files

add timer validation call

parent b5169b0c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment