X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=int%2Finterface.c;h=bec4f09048fb625fa29616532156d3717f9005e6;hb=9f027e68e5539f45f99e22fb3662c12d334835a9;hp=7fcc14832e4966d92f4a0892bbdd42941a626afb;hpb=3717889965f37ab0670a4e74f5e378c5cd9996f7;p=mTask.git diff --git a/int/interface.c b/int/interface.c index 7fcc148..bec4f09 100644 --- a/int/interface.c +++ b/int/interface.c @@ -39,6 +39,9 @@ void write_dpin(uint8_t i, bool b) bool read_dpin(uint8_t i) { + if(i == 3){ + return palReadLine(LINE_BUTTON) == PAL_HIGH; + } return palReadLine(dpins[i]) == PAL_HIGH; } @@ -72,13 +75,13 @@ void setup(void) void debug(char *fmt, ...) { +#ifdef DEBUG unsigned int i; write_byte('m'); for(i = 0; i