#define BIT(n) (1<<(n))
-void receive(uint8_t);
+void check_input();
uint8_t hexdigit(uint8_t);
uint8_t decode_hex(uint8_t);
{
uint8_t b_pins, d_pins;
+ check_input();
+
b_pins = PINB;
d_pins = PIND;
}
}
-void receive(uint8_t c)
+void check_input()
{
+ uint8_t c;
+ if(!serial_read_available())
+ return;
+
+ c = serial_read();
if(rx_fill==0xFF)
{
if(c==':')
}
}
-SERIAL_SET_CALLBACK(receive)
-
uint8_t hexdigit(uint8_t n)
{
n &= 0xF;