Skip to content

Arduino-1.5.6-r2 HardwareSerial.cpp bug #1967

@peabo7

Description

@peabo7

There is a typo in the SerialEvent3 handling:

diff --git a/arduino-1.5.6-r2/hardware/arduino/avr/cores/arduino/HardwareSerial.
index a270ace..d91026a 100644
--- a/arduino-1.5.6-r2/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp
+++ b/arduino-1.5.6-r2/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp
@@ -72,7 +72,7 @@ void serialEventRun(void)
   if (Serial2_available && serialEvent2 && Serial2_available()) serialEvent2();
 #endif
 #if defined(HAVE_HWSERIAL3)
-  if (Serial3_available && serialEvent2 && Serial3_available()) serialEvent3();
+  if (Serial3_available && serialEvent3 && Serial3_available()) serialEvent3();
 #endif
 }

Peter Olson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions