From 5f9fa44247c4b57a54fde6f55e97787da9087903 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 13 Jan 2020 17:19:28 +0100 Subject: [PATCH] driver/radiotext.cpp: remove misleadingly indented lines Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3aec7f4146410ac802f089fbf20a0db4042fda28 Author: Thilo Graf Date: 2020-01-13 (Mon, 13 Jan 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/radiotext.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/driver/radiotext.cpp b/src/driver/radiotext.cpp index 563be71e2..33b4648d9 100644 --- a/src/driver/radiotext.cpp +++ b/src/driver/radiotext.cpp @@ -384,13 +384,15 @@ fprintf(stderr, "MEC=0x%02x DSN=0x%02x PSN=0x%02x MEL=%02d STATUS=0x%02x MFL=%02 // +Memory char *temp; asprintf(&temp, "%s", RT_Text[RT_Index]); - if (++rtp_content.rt_Index >= 2*MAX_RTPC) - rtp_content.rt_Index = 0; - asprintf(&rtp_content.radiotext[rtp_content.rt_Index], "%s", rtrim(temp)); - free(temp); - if (S_Verbose >= 1) - printf("Radiotext[%d]: %s\n", RT_Index, RT_Text[RT_Index]); - RT_Index +=1; if (RT_Index >= S_RtOsdRows) RT_Index = 0; + if (++rtp_content.rt_Index >= 2*MAX_RTPC) + rtp_content.rt_Index = 0; + asprintf(&rtp_content.radiotext[rtp_content.rt_Index], "%s", rtrim(temp)); + free(temp); + if (S_Verbose >= 1) + printf("Radiotext[%d]: %s\n", RT_Index, RT_Text[RT_Index]); + RT_Index +=1; + if (RT_Index >= S_RtOsdRows) + RT_Index = 0; } RTP_TToggle = 0x03; // Bit 0/1 = Title/Artist RT_MsgShow = true;