Allow negative tx power

Like SX1262 allows -9 dBm lowest, some allow lower but that probably
isn't useful
This commit is contained in:
Wessel Nieboer authored and Wessel Nieboer committed 2026-02-06 02:24:51 +01:00
1 parent 38414f07de
commit 20e71ebc53
141 files changed
+144 -144

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@ struct NodePrefs { // persisted to file
double node_lat, node_lon;
char password[16];
float freq;
uint8_t tx_power_dbm;
int8_t tx_power_dbm;
uint8_t disable_fwd;
uint8_t advert_interval; // minutes / 2
uint8_t flood_advert_interval; // hours
@@ -67,7 +67,7 @@ public:
virtual void setLoggingOn(bool enable) = 0;
virtual void eraseLogFile() = 0;
virtual void dumpLogFile() = 0;
virtual void setTxPower(uint8_t power_dbm) = 0;
virtual void setTxPower(int8_t power_dbm) = 0;
virtual void formatNeighborsReply(char *reply) = 0;
virtual void removeNeighbor(const uint8_t* pubkey, int key_len) {
// no op by default