Removed all of the compiler warnings

This commit is contained in:
David Volovskiy
2025-11-23 12:27:00 -05:00
committed by Alessandro Genova
parent 994c12cc30
commit 51ca839f3b
4 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -326,13 +326,13 @@ static void _movement_handle_button_presses(uint32_t pending_events) {
}
// If a long press occurred
if (pending_events & (1 << button->down_event + 2)) {
if (pending_events & (1 << (button->down_event + 2))) {
watch_rtc_register_comp_callback_no_schedule(button->cb_longpress, button->down_timestamp + MOVEMENT_REALLY_LONG_PRESS_TICKS, button->timeout_index);
any_long = true;
}
// If a really long press occurred
if (pending_events & (1 << button->down_event + 4)) {
if (pending_events & (1 << (button->down_event + 4))) {
watch_rtc_register_comp_callback_no_schedule(button->cb_longpress, button->down_timestamp + MOVEMENT_MAX_LONG_PRESS_TICKS, button->timeout_index);
any_long = true;
}