Skip to content

Commit

Permalink
SubGHz: fix memory corrupt in read raw view [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZlo13 authored and xMasterX committed May 24, 2024
1 parent ba8dd58 commit e31fbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/main/subghz/views/subghz_read_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void subghz_read_raw_add_data_rssi(SubGhzReadRAW* instance, float rssi, bool tra
model->rssi_history[model->ind_write] = u_rssi;
}

if(model->ind_write > SUBGHZ_READ_RAW_RSSI_HISTORY_SIZE) {
if(model->ind_write >= SUBGHZ_READ_RAW_RSSI_HISTORY_SIZE) {
model->rssi_history_end = true;
model->ind_write = 0;
}
Expand Down

0 comments on commit e31fbb0

Please sign in to comment.