#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 (); modem_send ("ATDT120;"); } else { usart2_queue (v); } } }