KipK / Ghettostation

Multiprotocol antenna tracker and ground osd.
145 stars 69 forks source link

Error #25

Open sniperxnl opened 8 years ago

sniperxnl commented 8 years ago

In file included from GhettoStation.ino:38: GhettoStation.h:12: error: no matching function for call to 'HardwareSerial::HardwareSerial(int)' C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:54: note: candidates are: HardwareSerial::HardwareSerial(ringbuffer, ringbuffer, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t) C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:33: note: HardwareSerial::HardwareSerial(const HardwareSerial&) GhettoStation.h:13: error: no matching function for call to 'HardwareSerial::HardwareSerial()' C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:54: note: candidates are: HardwareSerial::HardwareSerial(ringbuffer, ringbuffer, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t) C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:33: note: HardwareSerial::HardwareSerial(const HardwareSerial&)

LeoTosti commented 8 years ago

Hello, I've got the same HardwareSerial error, have you solved this error? Someone has a solution? Thank you.

Landin81 commented 8 years ago

Same problem here. have try several different arduino versions but same problem. =/ spend about 10 hours trying to fix it... oh, sorry, 11 hours now. Thought this would be a easy diy project =(

LeoTosti commented 8 years ago

Hello I think I have solved the problem, here's the change:

ifdef TEENSYPLUS2

// This line defines a "Uart" object to access the serial port HardwareSerial SerialPort1(Serial1); instead of : HardwareSerial SerialPort1 = HardwareSerial(); HardwareSerial SerialDebug(Serial); instead of: HardwareSerial SerialDebug = HardwareSerial();

After that you should not have error message, but I do not think the code work when using a Teensy. No more error for me with Arduino Mega it compiles ok but I have not yet tested the station because I expected the necessary equipment, being delivered ..

Test with this change and said me if compromait or not the operation of the Ghettostation. Well, I expect your return. :)