Skip to content

Fix Teensy 4.x compilation error by updating HardwareSerial to Hardwa…#43

Open
mukptl wants to merge 1 commit intoAgOpenGPS-Official:mainfrom
mukptl:fix-teensy-serial-error
Open

Fix Teensy 4.x compilation error by updating HardwareSerial to Hardwa…#43
mukptl wants to merge 1 commit intoAgOpenGPS-Official:mainfrom
mukptl:fix-teensy-serial-error

Conversation

@mukptl
Copy link
Copy Markdown

@mukptl mukptl commented Apr 9, 2026

…reSerialIMXRT (Teensyduino 1.59+)

Fix Teensy 4.x Compilation Error (HardwareSerial issue)

Problem

Compilation fails on newer Teensyduino (1.59+) with:
'class HardwareSerial' has no member named 'addMemoryForRead'

Cause

Teensyduino moved addMemoryForRead() from HardwareSerial to HardwareSerialIMXRT (Teensy 4.x specific).

Fix

Updated serial object types to HardwareSerialIMXRT in:

  • AIO_v4_Firmware
  • AIO_v4_Firmware_Keya_CANBUS_HPR_Dual_27.04.2025

Tested On

  • Teensy 4.1
  • Teensyduino 1.59+

Result

  • Compilation successful
  • Serial buffer functions working correctly

@mukptl
Copy link
Copy Markdown
Author

mukptl commented Apr 9, 2026

Tested on Teensy 4.1 with Teensyduino 1.59+.
Fix resolves compilation error and restores addMemoryForRead functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant