Skip to content

Commit

Permalink
just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Jul 25, 2023
1 parent f1a353d commit 3fcf0da
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions applications/external/solitaire/solitaire.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ int32_t solitaire_app(void* p) {
for(bool processing = true; processing;) {
FuriStatus event_status = furi_message_queue_get(event_queue, &event, 150);
furi_mutex_acquire(game_state->mutex, FuriWaitForever);
bool hadChange = false;
if(event_status == FuriStatusOk) {
if(event.type == EventTypeKey) {
if(event.input.type == InputTypeLong) {
Expand Down Expand Up @@ -528,7 +527,6 @@ int32_t solitaire_app(void* p) {
game_state->state = GameStatePlay;
init(game_state);
} else {
hadChange = true;
game_state->input = event.input.key;
}
break;
Expand All @@ -546,11 +544,8 @@ int32_t solitaire_app(void* p) {
processing = game_state->processing;
game_state->input = InputKeyMAX;
}
} else {
//FURI_LOG_W(APP_NAME, "osMessageQueue: event timeout");
// event timeout
}
if(hadChange || game_state->state == GameStateAnimate) view_port_update(view_port);
view_port_update(view_port);
furi_mutex_release(game_state->mutex);
}

Expand Down

0 comments on commit 3fcf0da

Please sign in to comment.