From 18c030f6b5342cf3f4a9206f95f0101396acf539 Mon Sep 17 00:00:00 2001 From: bbond007 Date: Tue, 11 Dec 2018 04:05:07 -0500 Subject: [PATCH] System Menu SoftSynth --- menu.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/menu.cpp b/menu.cpp index 2f39038..f171c53 100644 --- a/menu.cpp +++ b/menu.cpp @@ -1335,10 +1335,14 @@ void HandleUI(void) menumask |= 0x18; sprintf(s, " UART connection %s", config_uart_msg[mode]); OsdWrite(3, s, menusub == 3, 0); - sprintf(s, " Softsynth %s", ((mode == 3 || mode == 4) - && stat("/dev/midi", &filestat) != 0)? - config_softsynth_msg[GetSoftSynthMode()]:" N/A"); - OsdWrite(4, s, menusub == 4 , 0); + + if((mode == 3 || mode == 4) && stat("/dev/midi", &filestat) != 0) + { + sprintf(s, " Softsynth %s", config_softsynth_msg[GetSoftSynthMode()]); + OsdWrite(4, s, menusub == 4 , 0); + } + else + OsdWrite(4," Softsynth N/A", menusub == 4 , 1); } else {