Skip to content

Commit 1ebbdd8

Browse files
db4pledf8oe
authored andcommitted
Fix for #1891 FT-817 CAT emulation broken for WINTEST
The change back to the original response of the real FT-817 on PTT_STATE CAT command (which is 0xff) fixes an issue with the WINTEST program. That hamlib only tests the bit 7 (0x80) in ft817_get_ptt does not make 0x80 a valid answer for other programs. cherry-pick cat fix
1 parent 5a75745 commit 1ebbdd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mchf-eclipse/drivers/cat/cat_driver.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,10 +1286,11 @@ static void CatDriver_HandleCommands()
12861286
{
12871287
uint8_t tx_state = limit_4bits(roundf(swrm.fwd_pwr));
12881288
tx_state |= is_splitmode() ? 0x20 : 0x00;
1289-
tx_state |= ts.txrx_mode == TRX_MODE_TX ? 0x00 : 0x80;
12901289
tx_state |= swrm.vswr_dampened > 3.0 ? 0x40 : 0x00;
12911290

1292-
resp[0]= ts.txrx_mode == TRX_MODE_TX ? tx_state : 0x80;
1291+
// the only correct response when in rx mode is 0xff, confirmed
1292+
// with a real FT-817
1293+
resp[0]= ts.txrx_mode == TRX_MODE_TX ? tx_state : 0xff;
12931294
if(RadioManagement_IsTxDisabled())
12941295
{
12951296
resp[0] = 0xFF;

0 commit comments

Comments
 (0)