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
2026-02-06 02:24:51 +01:00
committed by Wessel Nieboer
parent f7e92a7cd1
commit d0720c63c2
141 files changed
+144 -144

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ struct NodePrefs { // persisted to file
char node_name[32];
double node_lat, node_lon;
float freq;
uint8_t tx_power_dbm;
int8_t tx_power_dbm;
uint8_t unused[3];
};
@@ -290,7 +290,7 @@ public:
}
float getFreqPref() const { return _prefs.freq; }
uint8_t getTxPowerPref() const { return _prefs.tx_power_dbm; }
int8_t getTxPowerPref() const { return _prefs.tx_power_dbm; }
void begin(FILESYSTEM& fs) {
_fs = &fs;