Settings: Add missing early return on error to getFDBaudrateFor

pull/32/head
Paul Hollinsky 2021-04-08 15:05:39 -04:00
parent 7fdae15aed
commit 66b0c91cea
1 changed files with 1 additions and 0 deletions

View File

@ -449,6 +449,7 @@ bool IDeviceSettings::setBaudrateFor(Network net, int64_t baudrate) {
int64_t IDeviceSettings::getFDBaudrateFor(Network net) const { int64_t IDeviceSettings::getFDBaudrateFor(Network net) const {
if(disabled) { if(disabled) {
report(APIEvent::Type::SettingsNotAvailable, APIEvent::Severity::Error); report(APIEvent::Type::SettingsNotAvailable, APIEvent::Severity::Error);
return -1;
} }
if(!settingsLoaded) { if(!settingsLoaded) {