FT857D-ESP32/FT857D-ESP32.cpp
// get the VFO status from the radio F6CZV
// 
get the VFO status from the radio F6CZV
get the VFO status from the radio F6CZV
String FT857D::getVFO() {   
	byte rigTXState[5] = {0x00,0x00,0x00,0x00,0x00};
	rigTXState[4] = CAT_EEPROM_READ_CMD;
	rigTXState[0] = MSB_ADD_VFO_status;
	rigTXState[1] = LSB_ADD_VFO_status;
	String VFO;
	VFO = ' ';
	sendCmd(rigTXState, 5);
	byte reply = getByte();
	if (reply == 0x80) {VFO = 'a';}
	else {VFO = 'b';}
        reply = getByte(); 
	return VFO;
}
String FT857D :: getVFO ( ) { byte rigTXState [ 5 ] = { 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ; rigTXState [ 4 ] = CAT_EEPROM_READ_CMD ; rigTXState [ 0 ] = MSB_ADD_VFO_status ; rigTXState [ 1 ] = LSB_ADD_VFO_status ; String VFO ; VFO = ' ' ; sendCmd ( rigTXState , 5 ) ; byte reply = getByte ( ) ; if ( reply == 0x80 ) { VFO = ' ' ; } else { VFO = ' ' ; } reply = getByte ( ) ; return VFO ; }
get the VFO status from the radio F6CZV
get the VFO status from the radio F6CZV
// byte discarded