Fix: Guru Meditation (StoreProhibited) when saving DTU settings
Fixed #1725
This commit is contained in:
parent
8e01a275af
commit
3cf8fea8e0
@ -239,8 +239,11 @@ CountryModeId_t HoymilesRadio_CMT::getCountryMode() const
|
|||||||
|
|
||||||
void HoymilesRadio_CMT::setCountryMode(const CountryModeId_t mode)
|
void HoymilesRadio_CMT::setCountryMode(const CountryModeId_t mode)
|
||||||
{
|
{
|
||||||
_radio->setFrequencyBand(countryDefinition.at(mode).Band);
|
|
||||||
_countryMode = mode;
|
_countryMode = mode;
|
||||||
|
if (!_isInitialized) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_radio->setFrequencyBand(countryDefinition.at(mode).Band);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t HoymilesRadio_CMT::getInvBootFrequency() const
|
uint32_t HoymilesRadio_CMT::getInvBootFrequency() const
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user