mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-07-05 17:35:32 +00:00
Invert split value from what Yaesu's documentation says, because hamlib reads it inverted
This commit is contained in:
parent
e770230d14
commit
e809b37e29
|
@ -388,7 +388,7 @@ void processCatCommand(uint8_t* cmd) {
|
|||
reply_status.HighSwrDetected = 0;
|
||||
reply_status.PowerOutputMeter = 0xF;
|
||||
reply_status.PttOff = !globalSettings.txActive;
|
||||
reply_status.SplitOff = !globalSettings.splitOn;
|
||||
reply_status.SplitOff = globalSettings.splitOn;//Yaesu's documentation says that 1 = split off, but as of 2020-05-04 hamlib reads (*split = (p->tx_status & 0x20) ? RIG_SPLIT_ON : RIG_SPLIT_OFF), so do what hamlib wants
|
||||
|
||||
response[0] = *(uint8_t*)&reply_status;
|
||||
response_length = 1;
|
||||
|
@ -407,7 +407,7 @@ void checkCAT(){
|
|||
static uint8_t rx_buffer[FT817_MESSAGE_SIZE];
|
||||
static uint8_t current_index = 0;
|
||||
static uint32_t timeout = 0;
|
||||
/*
|
||||
|
||||
//Check Serial Port Buffer
|
||||
if (Serial.available() == 0) { //Set Buffer Clear status
|
||||
if(timeout < millis()){
|
||||
|
@ -425,10 +425,7 @@ void checkCAT(){
|
|||
if(current_index < FT817_MESSAGE_SIZE){
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
rx_buffer[P1] = timeout;
|
||||
rx_buffer[P2] = current_index;
|
||||
rx_buffer[CMD] = Ft817Command_e::ReadTxStatus;
|
||||
}
|
||||
|
||||
processCatCommand(rx_buffer);
|
||||
current_index = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user