bool read_dpin(uint8_t i)
{
+ if(i == 3){
+ return palReadLine(LINE_BUTTON) == PAL_HIGH;
+ }
return palReadLine(dpins[i]) == PAL_HIGH;
}
void debug(char *fmt, ...)
{
+#ifdef DEBUG
unsigned int i;
write_byte('m');
for(i = 0; i<strlen(fmt); i++){
write_byte((uint8_t)fmt[i]);
}
write_byte('\n');
-#ifdef DEBUG
#endif
(void)fmt;
}