Skip to content

Commit

Permalink
ST25TB poller mode check (#4084)
Browse files Browse the repository at this point in the history
Co-authored-by: あく <alleteam@gmail.com>
  • Loading branch information
RebornedBrain and skotopes authored Feb 13, 2025
1 parent e27f82f commit de85cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nfc/protocols/st25tb/st25tb_poller.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static NfcCommand st25tb_poller_request_mode_handler(St25tbPoller* instance) {
St25tbPollerEventDataModeRequest* mode_request_data =
&instance->st25tb_event_data.mode_request;

furi_assert(mode_request_data->mode < St25tbPollerModeNum);
furi_check(mode_request_data->mode < St25tbPollerModeNum);

if(mode_request_data->mode == St25tbPollerModeRead) {
instance->state = St25tbPollerStateRead;
Expand Down

0 comments on commit de85cc7

Please sign in to comment.