|
|
@@ -40,7 +40,7 @@ class Timer {
|
|
40
|
40
|
static const uint8_t Reserved = 0xFE;
|
|
41
|
41
|
|
|
42
|
42
|
uint8_t to_ticks(int ms) {
|
|
43
|
|
- return (HAL::TicksPerSecond * ms + 500) / 1000;
|
|
|
43
|
+ return ((uint32_t)HAL::TicksPerSecond * ms + 500) / 1000;
|
|
44
|
44
|
}
|
|
45
|
45
|
|
|
46
|
46
|
bool tick_internal(uint8_t reload = Stopped);
|