# HG changeset patch # User Mychaela Falconia # Date 1719171248 0 # Node ID e3d16d490ce21e4e6e87c477d030464d3733ce56 # Parent 70aa8cbdbde91b862934712e5342ae9a1175abda pcm: implement dmw-on and dmw-off commands diff -r 70aa8cbdbde9 -r e3d16d490ce2 pcm/globals.h --- a/pcm/globals.h Sun Jun 23 19:30:40 2024 +0000 +++ b/pcm/globals.h Sun Jun 23 19:34:08 2024 +0000 @@ -15,3 +15,5 @@ void cmd_record_stop(int argc, char **argv); void cmd_print_rx(int argc, char **argv); void cmd_pcm_fill(int argc, char **argv); +void cmd_dmw_on(int argc, char **argv); +void cmd_dmw_off(int argc, char **argv); diff -r 70aa8cbdbde9 -r e3d16d490ce2 pcm/pcm_tx.c --- a/pcm/pcm_tx.c Sun Jun 23 19:30:40 2024 +0000 +++ b/pcm/pcm_tx.c Sun Jun 23 19:34:08 2024 +0000 @@ -76,3 +76,13 @@ goto inv_arg; pcm_fill_octet = val; } + +void cmd_dmw_on(int argc, char **argv) +{ + dmw_active = true; +} + +void cmd_dmw_off(int argc, char **argv) +{ + dmw_active = false; +} diff -r 70aa8cbdbde9 -r e3d16d490ce2 pcm/user_cmd.c --- a/pcm/user_cmd.c Sun Jun 23 19:30:40 2024 +0000 +++ b/pcm/user_cmd.c Sun Jun 23 19:34:08 2024 +0000 @@ -17,6 +17,8 @@ char *cmd; void (*func)(int argc, char **argv); } cmdtab[] = { + {"dmw-on", cmd_dmw_on}, + {"dmw-off", cmd_dmw_off}, {"pcm-fill", cmd_pcm_fill}, {"print-rx", cmd_print_rx}, {"record", cmd_record_start},