From 3ceb3eab997984522e14e192f3f82a969cbbdedd Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Wed, 14 Jun 2023 17:51:55 +0200 Subject: [PATCH] Clean up --- TEF6686_ESP32.ino | 2 -- src/TEF6686.cpp | 5 ----- 2 files changed, 7 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 9bde65b..5ae6fd0 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -2,13 +2,11 @@ #include #include // https://github.com/Bodmer/TFT_eSPI #include // https://github.com/PaulStoffregen/Time -#include #include "src/font.h" #include "src/TEF6686.h" #include "src/constants.h" #include "src/language.h" - #define GFXFF 1 #define FONT24 &Aura2Regular24pt7b #define FONT14 &Aura2Regular14pt8b diff --git a/src/TEF6686.cpp b/src/TEF6686.cpp index c1ea249..6da0c6d 100644 --- a/src/TEF6686.cpp +++ b/src/TEF6686.cpp @@ -298,8 +298,6 @@ bool TEF6686::readRDS(bool showrdserrors) } if (ps_process == 2) { -// strcpy(rds.stationName, ps_buffer); - RDScharConverter(ps_buffer, rds.PStext, sizeof(rds.PStext) / sizeof(wchar_t)); rds.stationName = convertToUTF8(rds.PStext); @@ -365,9 +363,7 @@ bool TEF6686::readRDS(bool showrdserrors) if (rds.rtAB != ABold) { offsetold = 0; rds.stationText = ""; - //for (int i = 0; i < 65; i++) rds.stationText[i] = 0; if (rt_timer == 64) { -// strcpy(rds.stationText, stationTextBuffer); RDScharConverter(stationTextBuffer, rds.RTtext, sizeof(rds.RTtext) / sizeof(wchar_t)); rds.stationText = convertToUTF8(rds.RTtext); } @@ -399,7 +395,6 @@ bool TEF6686::readRDS(bool showrdserrors) strcpy(stationTextBuffer, rt_buffer); for (int i = 0; i < 64; i++) stationTextBuffer[i] = stationTextBuffer[i]; if (rt_timer < 64) { -// strcpy(rds.stationText, stationTextBuffer); RDScharConverter(stationTextBuffer, rds.RTtext, sizeof(rds.RTtext) / sizeof(wchar_t)); rds.stationText = convertToUTF8(rds.RTtext); rt_timer++;