Strange noise after boot melody if last mode was FM
Posted: Tue Jun 08, 2021 3:42 pm
Hi,
I think I've found a bug in my DM-1801. Every time I turn on my radio, if the last channel or VFO before turning it off was analog, a strange "click" noise is heard after the boot melody.
I've been trying to investigate the bug in the code but I haven't found an appropiate solution so far. I think it has to do with the channel data not having been loaded (bc in soundTickMelody in sound.c there's an if clause that sets the audio mux if channel mode is analog, and when the radio is booting, the mode is still RADIO_MODE_NONE). Adding trxSetModeAndBandwidth(RADIO_MODE_ANALOG, false); if the last mode before turning off the radio was analog too solved it for me. But it's a really, really bad solution, that doesn't go to the root of the problem, just poorly patches it.
Anyway, it's a really silly bug, and as I normally use digital channels it doesn't really bother me (if the radio was turned off being in a DMR channel, it doesn't happen), but I'll leave it here just in case someone who understands the code better than I do, can come up with something.
73
I think I've found a bug in my DM-1801. Every time I turn on my radio, if the last channel or VFO before turning it off was analog, a strange "click" noise is heard after the boot melody.
I've been trying to investigate the bug in the code but I haven't found an appropiate solution so far. I think it has to do with the channel data not having been loaded (bc in soundTickMelody in sound.c there's an if clause that sets the audio mux if channel mode is analog, and when the radio is booting, the mode is still RADIO_MODE_NONE). Adding trxSetModeAndBandwidth(RADIO_MODE_ANALOG, false); if the last mode before turning off the radio was analog too solved it for me. But it's a really, really bad solution, that doesn't go to the root of the problem, just poorly patches it.
Anyway, it's a really silly bug, and as I normally use digital channels it doesn't really bother me (if the radio was turned off being in a DMR channel, it doesn't happen), but I'll leave it here just in case someone who understands the code better than I do, can come up with something.
73