BriscoeTech / Arduino-FreeRTOS-SAMD21

A port of FreeRTOS that runs on Arduino Samd21 boards
63 stars 19 forks source link

error: unknown type name 'Stream' #23

Closed woodage closed 3 years ago

woodage commented 3 years ago

Hi there!

I downloaded and installed your latest version. I got an error when compiling the example "CompilerAndLinker_Test" from the Arduino IDE:

In file included from /home/robbie/Arduino/libraries/FreeRTOS_SAMD21/src/FreeRTOS_SAMD21.h:30, from sketch/GameThing.h:1, from sketch/GameThing.c:1: Arduino/libraries/FreeRTOS_SAMD21/src/error_hooks.h:27:23: error: unknown type name 'Stream' 27 | void vSetErrorSerial(Stream *serial); | ^~ exit status 1 Error compiling for board Adafruit Feather M0.

BriscoeTech commented 3 years ago

Hello woodage,

Thanks for posting! I recently added some serial printing options to the error handler hooks and didn't think to re-run this project. Looks like some c code including this header did not like the new cpp serial objects. Oops!

I fixed the issue and pushed it to the development branch, will merge this to master soon.

Thanks again! Scott