SubGhz: fix Incorrect comparison in subghz_setting_get_hopper_frequency (#2518)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Skorpionm 2023-03-20 20:30:57 +04:00 committed by GitHub
parent 0917494a80
commit 445a1aa7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,7 @@ uint32_t subghz_setting_get_frequency(SubGhzSetting* instance, size_t idx) {
uint32_t subghz_setting_get_hopper_frequency(SubGhzSetting* instance, size_t idx) {
furi_assert(instance);
if(idx < FrequencyList_size(instance->frequencies)) {
if(idx < FrequencyList_size(instance->hopper_frequencies)) {
return *FrequencyList_get(instance->hopper_frequencies, idx);
} else {
return 0;