FT857D-ESP32/FT857D-ESP32.cpp
// determine if the radio is in TX state
// unless the radio is actively TX, the result is always
// 0x255 so any value other than 0x255 means TX !
determine if the radio is in TX state
unless the radio is actively TX, the result is always
0x255 so any value other than 0x255 means TX !
determine if the radio is in TX state unless the radio is actively TX the result is always 0x255 so any value other than 0x255 means TX !
bool FT857D::chkTx() {                         
	byte rigTXState[5] = {0x00,0x00,0x00,0x00,0x00};
	rigTXState[4] = CAT_TX_DATA_CMD;
	sendCmd(rigTXState, 5);
	byte reply = getByte();
	if (reply == 255) { 
		return false;
	}
	else {
		return true;
	}
}
bool FT857D :: chkTx ( ) { byte rigTXState [ 5 ] = { 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ; rigTXState [ 4 ] = CAT_TX_DATA_CMD ; sendCmd ( rigTXState , 5 ) ; byte reply = getByte ( ) ; if ( reply == 255 ) { return false ; } else { return true ; } }
determine if the radio is in TX state
unless the radio is actively TX, the result is always
0x255 so any value other than 0x255 means TX !
determine if the radio is in TX state unless the radio is actively TX the result is always 0x255 so any value other than 0x255 means TX !
// was boolean F6CZV // was ==0 F6CZV