mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Settings: Add missing early return on error to getFDBaudrateFor
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user