Skip to content

Commit a0d066e

Browse files
committed
Fix storing stations found by seek
1 parent 1f24571 commit a0d066e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: tuner/tuner.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,10 @@ void tunerStoreFavStation(uint8_t num)
365365
{
366366
uint16_t freq = eeprom_read_word((uint16_t *)EEPROM_FAV_STATIONS + num);
367367

368-
if (freq == tuner.freq)
368+
if (freq == tuner.rdFreq)
369369
eeprom_update_word((uint16_t *)EEPROM_FAV_STATIONS + num, 0);
370370
else
371-
eeprom_update_word((uint16_t *)EEPROM_FAV_STATIONS + num, tuner.freq);
371+
eeprom_update_word((uint16_t *)EEPROM_FAV_STATIONS + num, tuner.rdFreq);
372372
}
373373

374374
// Save/delete station from eeprom
@@ -378,7 +378,7 @@ void tunerStoreStation()
378378
uint16_t freqCell;
379379
uint16_t freq;
380380

381-
freq = tuner.freq;
381+
freq = tuner.rdFreq;
382382

383383
for (i = 0; i < FM_COUNT; i++) {
384384
freqCell = eeprom_read_word((uint16_t *)EEPROM_STATIONS + i);

0 commit comments

Comments
 (0)