X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=ui%2FLcdDisplay.c;h=4f6bf99a3a9922f00c55a6f9775190c9f4d1dfe5;hp=f2652c2b7911412fe047502095cd06d9bde0a8f6;hb=013b763c4c6740bb48dfcb28c2dd8547ff7e7697;hpb=e09935ae9396421171a3bc4e32320874a0bfd193 diff --git a/ui/LcdDisplay.c b/ui/LcdDisplay.c index f2652c2..4f6bf99 100644 --- a/ui/LcdDisplay.c +++ b/ui/LcdDisplay.c @@ -1,9 +1,5 @@ -#include -#include -#include -#include - #include "oswald-ui.h" +#include "oswald_strings.h" #include "Fonts.h" #include "LcdDisplay.h" @@ -142,13 +138,14 @@ u8t WriteLcdCharacter(u8t x, u8t y, u8t Character) void WriteLcdString(u8t x, u8t y, u8t *str) { - register lx, i; + register lx, i, strl; - if (str == NULL || strlen(str)==0) + strl = oswald_strlen(str); + if (strl == 0) return; lx = x; - for (i=0; i