summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/diacritic.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/firmware/common/diacritic.c b/firmware/common/diacritic.c
index 563028cab8..92c2400203 100644
--- a/firmware/common/diacritic.c
+++ b/firmware/common/diacritic.c
@@ -194,7 +194,7 @@ static const struct diac_range diac_ranges[] =
};
#define MRU_MAX_LEN 32
-
+#ifndef BOOTLOADER
bool is_diacritic(const unsigned short char_code, bool *is_rtl)
{
static uint8_t mru_len = 0;
@@ -248,4 +248,12 @@ Found:
return (char_code < diac->base + (info & DIAC_CNT));
}
-
+#else /*BOOTLOADER*/
+inline bool is_diacritic(const unsigned short char_code, bool *is_rtl)
+{
+ (void)char_code;
+ if (is_rtl)
+ *is_rtl = false;
+ return false;
+}
+#endif /* ndef BOOTLOADER*/