mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-19 11:21:39 +03:00
Fixed max array size check
This commit is contained in:
parent
411855ce81
commit
884a751ae7
@ -117,7 +117,7 @@ static bool hid_mouse_jiggler_input_callback(InputEvent* event, void* context) {
|
||||
consumed = true;
|
||||
}
|
||||
if(event->type == InputTypePress && event->key == InputKeyRight && !model->running &&
|
||||
model->interval_idx < LENGTH(intervals)) {
|
||||
model->interval_idx < LENGTH(intervals) - 1) {
|
||||
model->interval_idx++;
|
||||
consumed = true;
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ static bool hid_mouse_jiggler_input_callback(InputEvent* event, void* context) {
|
||||
consumed = true;
|
||||
}
|
||||
if(event->type == InputTypePress && event->key == InputKeyRight && !model->running &&
|
||||
model->interval_idx < LENGTH(intervals)) {
|
||||
model->interval_idx < LENGTH(intervals) - 1) {
|
||||
model->interval_idx++;
|
||||
consumed = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user