0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00

update logic

This commit is contained in:
2025-03-13 21:37:11 +01:00
parent 119f798593
commit 140d7da7b1

View File

@@ -503,6 +503,11 @@ void set_rds_ps(unsigned char *ps) {
void set_rds_tps(unsigned char *tps) {
uint8_t len = 0;
if(tps[0] == '\0') {
memset(rds_data.tps, 0, PS_LENGTH);
return;
}
rds_state.tps_update = 1;
memset(rds_data.tps, ' ', PS_LENGTH);
while (*tps != 0 && len < PS_LENGTH)
@@ -512,7 +517,7 @@ void set_rds_tps(unsigned char *tps) {
void set_rds_lps(unsigned char *lps) {
uint8_t i = 0, len = 0;
if (!lps[0]) {
if(lps[0] == '\0') {
memset(rds_data.lps, 0, LPS_LENGTH);
return;
}