X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Finterface.c;h=fae81db03a128782733c1aa7ee36f87ee9954d5d;hb=2b50c2537dbb28d062938a6c217f5ba27fed23d9;hp=810694526ade5023cf51e8f6b90eb0c5a2f557f1;hpb=6c8939998c64aafb8cdfa40e52a227bf72767648;p=mTask.git diff --git a/client/interface.c b/client/interface.c index 8106945..fae81db 100644 --- a/client/interface.c +++ b/client/interface.c @@ -35,9 +35,6 @@ 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; } @@ -89,16 +86,13 @@ void setup(void) halInit(); chSysInit(); sdStart(&SD3, NULL); + sdStart(&SD1, NULL); + + } void debug(char *fmt, ...) { -// unsigned int i; -// write_byte((uint8_t)'m'); -// for(i = 0; i