main: Use unsigned modulo

Explicitly affix the literal with `U` so SDCC will directly call
`moduint()` instead of `modsint()`.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2021-08-02 11:56:47 -06:00
committed by Jeremy Soller
parent d99ea41259
commit 73c6bd986d

View File

@ -99,7 +99,7 @@ void main(void) {
uint32_t last_time_fan = 0;
for(main_cycle = 0; ; main_cycle++) {
switch (main_cycle % 3) {
switch (main_cycle % 3U) {
case 0:
// Handle power states
power_event();