X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Finterface.c;h=ba4446f92d087dd7c88ced1782df3c00ede0782e;hb=e09afe083f9077d63a8bd6c27ed8fa5da60430a8;hp=9212720cdd5eb364d6275d3018be31121ab5885f;hpb=b55c1c423b6f00357b2ae2bbdd2abcf4456fd0cd;p=mTask.git diff --git a/int/interface.c b/int/interface.c index 9212720..ba4446f 100644 --- a/int/interface.c +++ b/int/interface.c @@ -86,6 +86,12 @@ void debug(char *fmt, ...) (void)fmt; } +void debugi(int i) +{ + char m[10]; + debug(itoa(i, m, 10)); +} + void pdie(char *s) { (void)s; @@ -93,5 +99,11 @@ void pdie(char *s) void die(char *fmt, ...) { + palWriteLine(LINE_LED1, PAL_HIGH); + palWriteLine(LINE_LED2, PAL_HIGH); + palWriteLine(LINE_LED3, PAL_HIGH); + while(1){ + delay(100); + } (void)fmt; }