|
|
|
@ -559,7 +559,7 @@ void CommonCLI::handleSetCmd(uint32_t sender_timestamp, char* command, char* rep |
|
|
|
#endif |
|
|
|
} else if (memcmp(config, "radio.fem.rxgain ", 17) == 0) { |
|
|
|
if (!_board->canControlLoRaFemLna()) { |
|
|
|
strcpy(reply, "Error: unsupported by this board"); |
|
|
|
strcpy(reply, "Error: unsupported"); |
|
|
|
} else if (memcmp(&config[17], "on", 2) == 0) { |
|
|
|
if (_board->setLoRaFemLnaEnabled(true)) { |
|
|
|
_prefs->radio_fem_rxgain = 1; |
|
|
|
@ -750,7 +750,7 @@ void CommonCLI::handleSetCmd(uint32_t sender_timestamp, char* command, char* rep |
|
|
|
} |
|
|
|
} else { |
|
|
|
_prefs->adc_multiplier = 0.0f; |
|
|
|
strcpy(reply, "Error: unsupported by this board"); |
|
|
|
strcpy(reply, "Error: unsupported"); |
|
|
|
}; |
|
|
|
} else { |
|
|
|
strcpy(reply, "unknown config: "); |
|
|
|
@ -800,7 +800,7 @@ void CommonCLI::handleGetCmd(uint32_t sender_timestamp, char* command, char* rep |
|
|
|
#endif |
|
|
|
} else if (memcmp(config, "radio.fem.rxgain", 16) == 0) { |
|
|
|
if (!_board->canControlLoRaFemLna()) { |
|
|
|
strcpy(reply, "Error: unsupported by this board"); |
|
|
|
strcpy(reply, "Error: unsupported"); |
|
|
|
} else { |
|
|
|
sprintf(reply, "> %s", _board->isLoRaFemLnaEnabled() ? "on" : "off"); |
|
|
|
} |
|
|
|
@ -885,12 +885,12 @@ void CommonCLI::handleGetCmd(uint32_t sender_timestamp, char* command, char* rep |
|
|
|
strcpy(reply, "> unknown"); |
|
|
|
} |
|
|
|
#else |
|
|
|
strcpy(reply, "ERROR: unsupported"); |
|
|
|
strcpy(reply, "Error: unsupported"); |
|
|
|
#endif |
|
|
|
} else if (memcmp(config, "adc.multiplier", 14) == 0) { |
|
|
|
float adc_mult = _board->getAdcMultiplier(); |
|
|
|
if (adc_mult == 0.0f) { |
|
|
|
strcpy(reply, "Error: unsupported by this board"); |
|
|
|
strcpy(reply, "Error: unsupported"); |
|
|
|
} else { |
|
|
|
sprintf(reply, "> %.3f", adc_mult); |
|
|
|
} |
|
|
|
|