Settings: Add missing early return on error to getFDBaudrateFor
parent
7fdae15aed
commit
66b0c91cea
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue