Mercurial > public > ostc4
diff Discovery/Src/tMenuEditCustom.c @ 737:5071d554aaa5
NEW: Add mini compass with marker declination indication
Contribution from mikeller
author | heinrichsweikamp |
---|---|
date | Mon, 06 Mar 2023 16:03:00 +0100 |
parents | 10b7d271b9c4 |
children | 4a6bffaa38b3 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditCustom.c Fri Mar 03 10:41:44 2023 +0100 +++ b/Discovery/Src/tMenuEditCustom.c Mon Mar 06 16:03:00 2023 +0100 @@ -175,6 +175,11 @@ text[4] = TXT_SimPpo2; break; #endif + case LLC_Compass: + text[4] = TXT_2BYTE; + text[5] = TXT2BYTE_Compass; + + break; /* none */ case LLC_Empty: text[4] = '-'; @@ -183,7 +188,12 @@ text[4] = 'X'; break; } - text[5] = 0; + if (text[4] != TXT_2BYTE) { + text[5] = 0; + } else { + text[6] = 0; + } + write_label_var( 30, 700, ME_Y_LINE6, &FontT48, text); write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext);