Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hjd1964 committed Aug 21, 2018
1 parent 20bb584 commit 688f892
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/HAL/HAL_Mega2560/HAL_Serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ ISR(USART1_RX_vect) {
#endif

#ifdef HAL_SERIAL_C_ENABLED

// default to Serial3 if the user didn't specify
#if !defined(HAL_SERIAL_C_SERIAL2) && !defined(HAL_SERIAL_C_SERIAL3)
#define HAL_SERIAL_C_SERIAL3
#endif

#ifdef HAL_SERIAL_C_SERIAL2
class pserial2 {
public:
Expand Down Expand Up @@ -228,9 +222,9 @@ ISR(USART2_RX_vect) {
SerialC._recv_buffer[SerialC._recv_tail]=UDR2;
SerialC._recv_tail++; // buffer is 256 bytes so this byte variable wraps automatically
}
#endif

#ifdef HAL_SERIAL_C_SERIAL3
#else

class pserial3 {
public:
void begin(unsigned long baud) {
Expand Down

0 comments on commit 688f892

Please sign in to comment.