mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-17 22:00:40 -04:00
Add support for negative TX power values
This commit is contained in:
parent
e5fcf79e4d
commit
c88fe0ed33
2 changed files with 2 additions and 2 deletions
|
@ -708,7 +708,7 @@ void serialCallback(uint8_t sbyte) {
|
|||
if (sbyte == 0xFF) {
|
||||
kiss_indicate_txpower(selected_radio);
|
||||
} else {
|
||||
int txp = sbyte;
|
||||
int8_t txp = (int8_t)sbyte;
|
||||
|
||||
if (op_mode == MODE_HOST) setTXPower(selected_radio, txp);
|
||||
kiss_indicate_txpower(selected_radio);
|
||||
|
|
|
@ -677,7 +677,7 @@ void kiss_indicate_implicit_length() {
|
|||
}
|
||||
|
||||
void kiss_indicate_txpower(RadioInterface* radio) {
|
||||
uint8_t txp = radio->getTxPower();
|
||||
int8_t txp = radio->getTxPower();
|
||||
serial_write(FEND);
|
||||
serial_write(CMD_TXPOWER);
|
||||
serial_write(txp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue