Revision bbf2f5ad
Added flushing before write to rfid reader
And other various fixes and changes, which I don't remember. Changed
rfid reading to read every tick, but only try writing if enough ticks
have passed.
toolbox/time.c | ||
---|---|---|
7 | 7 |
#define OCR (F_CPU / PRESCALE / 1000UL) |
8 | 8 |
#define ERROR (F_CPU / PRESCALE - OCR * 1000UL) |
9 | 9 |
|
10 |
static char ready, ms; |
|
10 |
static volatile char ready; |
|
11 |
static char ms; |
|
11 | 12 |
static uint16_t error; |
12 | 13 |
|
13 | 14 |
ISR(TIMER0_COMPA_vect) { |
Also available in: Unified diff