Skip to content

Commit 3e94ffd

Browse files
authored
Update MKRWAN.h
Made the function power(_rf_mode mode, uint8_t transmitPower) have more human readable arguments (changed index to transmitPower) Also put a comment there saying that the value has to be between 0 and 5 (but I don't know what the stronger power is)
1 parent d994574 commit 3e94ffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MKRWAN.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ class LoRaModem : public Stream
525525
return init();
526526
}
527527

528-
bool power(_rf_mode mode, uint8_t index) {
529-
sendAT(GF("+RFPOWER="), mode,",",index);
528+
bool power(_rf_mode mode, uint8_t transmitPower) { // transmitPower can be between 0 and 5
529+
sendAT(GF("+RFPOWER="), mode,",",transmitPower);
530530
if (waitResponse() != 1) {
531531
return false;
532532
} else {

0 commit comments

Comments
 (0)