Some more EON PS improvements
This commit is contained in:
+7
-3
@@ -1512,13 +1512,17 @@ void TEF6686::readRDS(byte showrdserrors) {
|
|||||||
offset = rds.rdsB & 0x0F; // Read offset
|
offset = rds.rdsB & 0x0F; // Read offset
|
||||||
|
|
||||||
if (offset < 4 && eon[eonIndex].pi == rds.rdsD) {
|
if (offset < 4 && eon[eonIndex].pi == rds.rdsD) {
|
||||||
for (int j = 0; j < 9; j++) EONPStext[eonIndex][j] = '\0'; // Clear buffer
|
|
||||||
eon_buffer[eonIndex][(offset * 2) + 0] = rds.rdsC >> 8; // First character of segment
|
eon_buffer[eonIndex][(offset * 2) + 0] = rds.rdsC >> 8; // First character of segment
|
||||||
eon_buffer[eonIndex][(offset * 2) + 1] = rds.rdsC & 0xFF; // Second character of segment
|
eon_buffer[eonIndex][(offset * 2) + 1] = rds.rdsC & 0xFF; // Second character of segment
|
||||||
eon_buffer[eonIndex][(offset * 2) + 2] = '\0'; // Endmarker of segment
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset == 0) eon[eonIndex].packet0 = true;
|
if (offset == 0) {
|
||||||
|
eon[eonIndex].packet0 = true;
|
||||||
|
eon[eonIndex].packet1 = false;
|
||||||
|
eon[eonIndex].packet2 = false;
|
||||||
|
eon[eonIndex].packet3 = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (offset == 1) eon[eonIndex].packet1 = true;
|
if (offset == 1) eon[eonIndex].packet1 = true;
|
||||||
if (offset == 2) eon[eonIndex].packet2 = true;
|
if (offset == 2) eon[eonIndex].packet2 = true;
|
||||||
if (offset == 3) eon[eonIndex].packet3 = true;
|
if (offset == 3) eon[eonIndex].packet3 = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user