#include "project.h" void serial_poll (void) { uint8_t v; if (!ring_read_byte (&rx2_ring, &v)) { modem_byte (v); //console_tx(&v,1); } if (!ring_read_byte (&rx1_ring, &v)) { if (v == '@') { toggle_fake_hook (); } else if (v == '#') { toggle_fake_hook (); dialstr_digit(1); dialstr_digit(2); dialstr_digit(0); } else { usart2_queue (v); } } }