Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HardwareSerial.h inline error Arduino 1.6.7 #2

Open
quarterturn opened this issue Nov 19, 2019 · 2 comments
Open

HardwareSerial.h inline error Arduino 1.6.7 #2

quarterturn opened this issue Nov 19, 2019 · 2 comments

Comments

@quarterturn
Copy link

I'm trying to program an AT90USB162-based LCD USB Backpack (the Adafruit one) to make a minor firmware change, and Arduino 1.6.7 is failing here with your HardwareSerial.h:

adafruit-cu40025SCPB-U5A:41: error: no matching function for call to 'HardwareSerial::HardwareSerial()' HardwareSerial Uart = HardwareSerial(); ^ /home/alex/Arduino/adafruit-cu40025SCPB-U5A/adafruit-cu40025SCPB-U5A.ino:41:38: note: candidates are: In file included from /home/alex/.arduino15/packages/MattairTech_Arduino/hardware/avr/1.6.9-mt1/cores/arduino/Arduino.h:224:0, from sketch/adafruit-cu40025SCPB-U5A.ino.cpp:1: /home/alex/.arduino15/packages/MattairTech_Arduino/hardware/avr/1.6.9-mt1/cores/arduino/HardwareSerial.h:117:12: note: HardwareSerial::HardwareSerial(volatile uint8_t*, volatile uint8_t*, volatile uint8_t*, volatile uint8_t*, volatile uint8_t*, volatile uint8_t*) inline HardwareSerial( ^ /home/alex/.arduino15/packages/MattairTech_Arduino/hardware/avr/1.6.9-mt1/cores/arduino/HardwareSerial.h:117:12: note: candidate expects 6 arguments, 0 provided /home/alex/.arduino15/packages/MattairTech_Arduino/hardware/avr/1.6.9-mt1/cores/arduino/HardwareSerial.h:93:7: note: constexpr HardwareSerial::HardwareSerial(const HardwareSerial&) class HardwareSerial : public Stream ^ /home/alex/.arduino15/packages/MattairTech_Arduino/hardware/avr/1.6.9-mt1/cores/arduino/HardwareSerial.h:93:7: note: candidate expects 1 argument, 0 provided /home/alex/.arduino15/packages/MattairTech_Arduino/hardware/avr/1.6.9-mt1/cores/arduino/HardwareSerial.h:93:7: note: constexpr HardwareSerial::HardwareSerial(HardwareSerial&&) /home/alex/.arduino15/packages/MattairTech_Arduino/hardware/avr/1.6.9-mt1/cores/arduino/HardwareSerial.h:93:7: note: candidate expects 1 argument, 0 provided exit status 1 no matching function for call to 'HardwareSerial::HardwareSerial()'

Any ideas on how to fix? I'm not very much a C++ person so please excuse if it's obvious.

@mattairtech
Copy link
Owner

I can take a look. Can you please provide a link to the product used and the sketch that fails compilation.

@quarterturn
Copy link
Author

quarterturn commented Nov 20, 2019 via email

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

No branches or pull requests

2 participants