Compatibility with FM-DX-Webserver
This commit is contained in:
+2
-3
@@ -352,7 +352,7 @@ void XDRGTKRoutine() {
|
||||
case 'T':
|
||||
unsigned int freqtemp;
|
||||
freqtemp = atoi(buff + 1);
|
||||
if (BAND_FM) freqtemp -= ConverterSet * 1000;
|
||||
if (BAND_FM) freqtemp -= ConverterSet * 1000;
|
||||
if (seek) seek = false;
|
||||
if (freqtemp >= LWLowEdgeSet && freqtemp <= LWHighEdgeSet) {
|
||||
frequency_LW = freqtemp;
|
||||
@@ -574,7 +574,7 @@ void XDRGTKRoutine() {
|
||||
DataPrint("Sm");
|
||||
}
|
||||
}
|
||||
DataPrint(String(((SStatus * 100) + 10875) / 1000) + "." + String(((SStatus * 100) + 10875) / 100 % 10) + ", " + String(WAM / 10) + ", " + String(CN) + "\n");
|
||||
DataPrint(String(((SStatus * 100) + 10875) / 1000) + "." + String(((SStatus * 100) + 10875) / 100 % 10) + "," + String(WAM / 10) + "," + String(CN) + "\n\n");
|
||||
}
|
||||
|
||||
void passwordcrypt() {
|
||||
@@ -617,4 +617,3 @@ void tryWiFi() {
|
||||
Udp.stop();
|
||||
WiFi.mode(WIFI_OFF);
|
||||
}
|
||||
}
|
||||
+17
-17
@@ -403,24 +403,9 @@ void readRds() {
|
||||
}
|
||||
|
||||
if ((RDSstatus && XDRGTKUSB) || (RDSstatus && XDRGTKTCP)) {
|
||||
|
||||
uint8_t piError = radio.rds.rdsErr >> 14;
|
||||
if (piError < 3) {
|
||||
uint8_t piState = radio.rds.piBuffer.add(radio.rds.rdsA, piError);
|
||||
|
||||
if (piState != RdsPiBuffer::STATE_INVALID) {
|
||||
DataPrint ("P");
|
||||
DataPrint (String(((radio.rds.rdsA >> 8) >> 4) & 0xF, HEX) + String((radio.rds.rdsA >> 8) & 0xF, HEX));
|
||||
DataPrint (String(((radio.rds.rdsA) >> 4) & 0xF, HEX) + String((radio.rds.rdsA) & 0xF, HEX));
|
||||
while (piState != 0) {
|
||||
DataPrint("?");
|
||||
piState--;
|
||||
}
|
||||
DataPrint ("\n");
|
||||
}
|
||||
}
|
||||
|
||||
XDRGTKRDS = "R";
|
||||
XDRGTKRDS += String(((radio.rds.rdsA >> 8) >> 4) & 0xF, HEX) + String((radio.rds.rdsA >> 8) & 0xF, HEX);
|
||||
XDRGTKRDS += String(((radio.rds.rdsA) >> 4) & 0xF, HEX) + String((radio.rds.rdsA) & 0xF, HEX);
|
||||
XDRGTKRDS += String(((radio.rds.rdsB >> 8) >> 4) & 0xF, HEX) + String((radio.rds.rdsB >> 8) & 0xF, HEX);
|
||||
XDRGTKRDS += String(((radio.rds.rdsB) >> 4) & 0xF, HEX) + String((radio.rds.rdsB) & 0xF, HEX);
|
||||
XDRGTKRDS += String(((radio.rds.rdsC >> 8) >> 4) & 0xF, HEX) + String((radio.rds.rdsC >> 8) & 0xF, HEX);
|
||||
@@ -438,6 +423,21 @@ void readRds() {
|
||||
XDRGTKRDS += "\n";
|
||||
|
||||
if (XDRGTKRDS != XDRGTKRDSold) {
|
||||
uint8_t piError = radio.rds.rdsErr >> 14;
|
||||
if (piError < 3) {
|
||||
uint8_t piState = radio.rds.piBuffer.add(radio.rds.rdsA, piError);
|
||||
|
||||
if (piState != RdsPiBuffer::STATE_INVALID) {
|
||||
DataPrint ("P");
|
||||
DataPrint (String(((radio.rds.rdsA >> 8) >> 4) & 0xF, HEX) + String((radio.rds.rdsA >> 8) & 0xF, HEX));
|
||||
DataPrint (String(((radio.rds.rdsA) >> 4) & 0xF, HEX) + String((radio.rds.rdsA) & 0xF, HEX));
|
||||
while (piState != 0) {
|
||||
DataPrint("?");
|
||||
piState--;
|
||||
}
|
||||
DataPrint ("\n");
|
||||
}
|
||||
}
|
||||
DataPrint(XDRGTKRDS);
|
||||
XDRGTKRDSold = XDRGTKRDS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user