fem: RX CSD experiment control via console

This commit is contained in:
Lars Nolden
2026-08-31 23:18:44 +02:00
parent 19d9067156
commit 50e8ee2fb8
3 changed files with 16 additions and 1 deletions
+4
View File
@@ -14,6 +14,7 @@
#include "driver/usb_serial_jtag_vfs.h"
#include "repeater.h"
#include "sx126x.h"
static void ack(const char *cmd, bool ok, const char *detail)
{
@@ -43,6 +44,9 @@ static void handle_set(char *args)
} else if (strcmp(key, "repeat_enabled") == 0) {
g_cfg.repeat_enabled = (val[0] == '1');
ack("set repeat_enabled", true, NULL);
} else if (strcmp(key, "fem_rx_csd") == 0) {
fem_set_rx_csd(val[0] == '1');
ack("set fem_rx_csd", true, "applies at next RX entry");
} else if (strcmp(key, "verbose") == 0) {
g_cfg.verbose = (val[0] == '1');
ack("set verbose", true, NULL);