From 1f1ccf277cbc3afe279be95bf21bd911f7fdf06e Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 17 Jun 2019 11:59:33 +0200 Subject: [PATCH] Cosmetics --- radio/src/strhelpers.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/radio/src/strhelpers.cpp b/radio/src/strhelpers.cpp index 453cb7f91..ee42b8fe6 100644 --- a/radio/src/strhelpers.cpp +++ b/radio/src/strhelpers.cpp @@ -46,11 +46,7 @@ char zchar2char(int8_t idx) char char2lower(char c) { - if(c >= 'A' && c <= 'Z'){ - return c+32; - } - else - return c; + return (c >= 'A' && c <= 'Z') ? c + 32 : c; } int8_t char2zchar(char c)