summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openpcd/firmware/src/main_analog.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openpcd/firmware/src/main_analog.c b/openpcd/firmware/src/main_analog.c
index 676e9fc..c60b64e 100644
--- a/openpcd/firmware/src/main_analog.c
+++ b/openpcd/firmware/src/main_analog.c
@@ -45,8 +45,17 @@ int _main_dbgu(char key)
ana_out_sel++;
ret = 1;
break;
+ case 'c':
+ rc632_turn_on_rf(RAH);
+ break;
+ case 'o':
+ rc632_turn_off_rf(RAH);
+ break;
}
+ if (ana_out_sel >= 0xd)
+ ana_out_sel = 0;
+
if (ret == 1) {
ana_out_sel &= 0x0f;
DEBUGPCR("switching to analog output mode 0x%x\n", ana_out_sel);
personal git repositories of Harald Welte. Your mileage may vary