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-01-03 20:35:14 +01:00 committed by Wessel Nieboer
parent f7e92a7cd1
commit d0720c63c2
No known key found for this signature in database
GPG key ID: 929C8E45E33B5FD2
141 changed files with 144 additions and 144 deletions

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;