From: c vw Date: Mon, 26 Jul 2021 12:21:04 +0000 (+0200) Subject: a) report penelope software version 1.8 when using METIS with old protocol X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/%22doc.html/%22file:/?a=commitdiff_plain;h=63bbe3367fba953877cab9f385c34aeaf9de3e29;p=pihpsdr.git a) report penelope software version 1.8 when using METIS with old protocol b) ignore TXDRIVE settings when using METIS with old protocol. Both changes are meant to emulate PENELOLPE behaviour --- diff --git a/hpsdrsim.c b/hpsdrsim.c index e925efa..7f77864 100644 --- a/hpsdrsim.c +++ b/hpsdrsim.c @@ -1059,7 +1059,11 @@ void process_ep2(uint8_t *frame) case 18: case 19: - chk_data(frame[1],txdrive,"TX DRIVE"); + if (OLDDEVICE == DEVICE_METIS) { + txdrive=255; // penelope's cannnot adjust TX amplitude + } else { + chk_data(frame[1],txdrive,"TX DRIVE"); + } chk_data(frame[2] & 0x3F,hermes_config,"HERMES CONFIG"); chk_data((frame[2] >> 6) & 0x01, alex_manual,"ALEX manual HPF/LPF"); chk_data((frame[2] >> 7) & 0x01, vna ,"VNA mode"); @@ -1213,7 +1217,7 @@ void *handler_ep6(void *arg) uint8_t header[40] = { // C0 C1 C2 C3 C4 - 127, 127, 127, 0, 0, 33, 17, 21, + 127, 127, 127, 0, 0, 33, 18, 21, 127, 127, 127, 8, 0, 0, 0, 0, 127, 127, 127, 16, 0, 0, 0, 0, 127, 127, 127, 24, 0, 0, 0, 0,