minor, improve main loop

This commit is contained in:
King Kévin 2022-10-13 13:03:17 +02:00
parent b689c8d94c
commit 2de071edb2
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -413,10 +413,12 @@ void main(void)
}
}
nec_flag = false; // clear flag
action = true; // redo loop
}
if (0 == time_count % (488UL * SHARE_TIME)) {
nec_transmit(0xfb047f80);
putc('t');
action = true; // redo main loop
}
if (time_count > 488UL * REST_TIME) {
puts("rest\r\n");