mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-14 19:53:35 -07:00
Fixed max array size check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user