FT857D-ESP32/FT857D-ESP32.cpp
// set radio mode using human friendly terms (ie. USB)
set radio mode using human friendly terms
set radio mode using human friendly terms
void FT857D::setMode(String mode) {
	byte rigMode[5] = {0x00,0x00,0x00,0x00,0x00};
rigMode[0] = CAT_MODE_USB; 
rigMode[4] = CAT_MODE_SET; 
if (mode == "LSB") 	rigMode[0] = CAT_MODE_LSB;
if (mode == "USB")  	rigMode[0] = CAT_MODE_USB;
if (mode == "CW") 	rigMode[0] = CAT_MODE_CW;
if (mode == "CWR")      rigMode[0] = CAT_MODE_CWR;
if (mode == "AM") 	rigMode[0] = CAT_MODE_AM;
if (mode == "FM") 	rigMode[0] = CAT_MODE_FM;
if (mode == "DIG")	rigMode[0] = CAT_MODE_DIG;
if (mode == "PKT") 	rigMode[0] = CAT_MODE_PKT;
if (mode == "FMN") 	rigMode[0] = CAT_MODE_FMN;
sendCmd(rigMode,5);
	getByte();
}
void FT857D :: setMode ( String mode ) { byte rigMode [ 5 ] = { 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ; rigMode [ 0 ] = CAT_MODE_USB ; rigMode [ 4 ] = CAT_MODE_SET ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_LSB ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_USB ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_CW ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_CWR ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_AM ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_FM ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_DIG ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_PKT ; if ( mode == " " ) rigMode [ 0 ] = CAT_MODE_FMN ; sendCmd ( rigMode , 5 ) ; getByte ( ) ; }
set radio mode using human friendly terms (ie.
set radio mode using human friendly terms ( ie .
// default to USB mode // command byte