#include <stdlib.h>
#include <string.h>
-#ifndef STM
+#ifdef STM
+#else
#include <stdio.h>
#endif
//Find next task
if(input_available()){
uint8_t c = read_byte();
- debug("Receiving input: %c\n", c);
+ debug("Receiving input: %c %02x\n", c, c);
switch(c){
case MSG_SDS_SPEC:
debug("Receiving an sds");
break;
default:
debug("Unknown message: %X", c);
- debugi(c);
}
}
}
debug("Current task to run: %d", ct);
run_task(curtask);
curtask->lastrun = cyclestart;
- write_byte('\n');
}
}
setup();
sds_init();
task_init();
-
- debug("booting up");
+ //debug("booting up");
while(true){
//Check for newetasks
// debug("loop");