We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f24571 commit a0d066eCopy full SHA for a0d066e
tuner/tuner.c
@@ -365,10 +365,10 @@ void tunerStoreFavStation(uint8_t num)
365
{
366
uint16_t freq = eeprom_read_word((uint16_t *)EEPROM_FAV_STATIONS + num);
367
368
- if (freq == tuner.freq)
+ if (freq == tuner.rdFreq)
369
eeprom_update_word((uint16_t *)EEPROM_FAV_STATIONS + num, 0);
370
else
371
- eeprom_update_word((uint16_t *)EEPROM_FAV_STATIONS + num, tuner.freq);
+ eeprom_update_word((uint16_t *)EEPROM_FAV_STATIONS + num, tuner.rdFreq);
372
}
373
374
// Save/delete station from eeprom
@@ -378,7 +378,7 @@ void tunerStoreStation()
378
uint16_t freqCell;
379
uint16_t freq;
380
381
- freq = tuner.freq;
+ freq = tuner.rdFreq;
382
383
for (i = 0; i < FM_COUNT; i++) {
384
freqCell = eeprom_read_word((uint16_t *)EEPROM_STATIONS + i);
0 commit comments