diff --git a/GlobalDef.h b/GlobalDef.h index bc14f48..cf744a5 100644 --- a/GlobalDef.h +++ b/GlobalDef.h @@ -21,19 +21,12 @@ #define INPUT_IS_SET (bit_is_set(AC2_STATUS, AC_STATE_bp)) #define INPUT_IS_CLEAR (bit_is_clear(AC2_STATUS, AC_STATE_bp)) -#define LED_DDR DDRB -#define LED_PORT PORTB -#define LEDOUT _BV(PORT5) - #define sbi(port, bit) (port) |= (1 << (bit)) // Set bit (i.e. to 1) #define cbi(port, bit) (port) &= ~(1 << (bit)) // Clear bit (i.e. set bit to 0) typedef unsigned char byte; typedef unsigned int word; -inline void LedOff(void); -inline void LedOn(void); - // max 10 events in fifo extern byte EventCount; extern byte EventCmd[10]; diff --git a/com232.c b/com232.c index 758db56..9970ad1 100644 --- a/com232.c +++ b/com232.c @@ -33,10 +33,6 @@ byte RS232_RxCharBuffer[25], RS232_RxCharBegin, RS232_RxCharEnd; byte readkey; void RS232_Init(void) { - // // init LED - // sbi(DDRB, 5); - // cbi(PORTB, 5); - RS232_RxCharBegin = RS232_RxCharEnd = 0; USART0.CTRLA = USART_RXCIE_bm; // Enable receive interrupts diff --git a/sniffer.c b/sniffer.c index f8c0b5f..7d36da6 100644 --- a/sniffer.c +++ b/sniffer.c @@ -49,7 +49,6 @@ int main() { Setup(); RS232_Print("AVCLan reader 1.00\nReady\n\n"); - // LED_OFF(); RS232_Print_P(PSTR("\nS - read sequence\nW - send command\nQ - send " "broadcast\nL/l - log on/off\nK/k - seq. echo on/off\n")); RS232_Print_P(PSTR("R/r - register device\nB - Beep\n")); @@ -63,11 +62,9 @@ int main() { while (1) { if (INPUT_IS_SET) { // if message from some device on AVCLan begin - // LED_ON(); AVCLan_Read_Message(); // show message } else { - // LED_OFF(); // check command from HU if (answerReq != 0) AVCLan_SendAnswer();