Skip to content

Commit 7ab64a5

Browse files
committed
Fix missing return
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
1 parent d79b6a0 commit 7ab64a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LoRa_AT_mDOT.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,12 @@ class LoRa_AT_mDOT : public LoRa_AT_Modem<LoRa_AT_mDOT>,
414414
// on the module type.
415415
bool setBandImpl(const char* band) {
416416
sendAT(GF("+DFREQ="), band); // set the device EUI
417-
waitResponse();
417+
bool wasOk = waitResponse() == 1;
418418
commitSettings(true); // Write *protected* configurations
419419
// The default frequency band is a protected setting and it always has a
420420
// factory default value, so we must use the save protected settings command
421421
// to change it.
422+
return wasOk;
422423
}
423424
String getBandImpl() {
424425
return sendATGetString(GF("+FREQ?"));

0 commit comments

Comments
 (0)