- Aliasing a class - 3 Updates
- Sequencing - 6 Updates
- The Lord calls out to you for repentance, salvation - 1 Update
- knowledge of threads working under the hood in the os layer - 2 Updates
- Unable to push back objects to a static vector in the constructor - 1 Update
Saturday, March 11, 2017
Digest for comp.lang.c++@googlegroups.com - 13 updates in 5 topics
- Aliasing a class - 3 Updates
- Sequencing - 6 Updates
- The Lord calls out to you for repentance, salvation - 1 Update
- knowledge of threads working under the hood in the os layer - 2 Updates
- Unable to push back objects to a static vector in the constructor - 1 Update
| peter koch <peter.koch.larsen@gmail.com>: Mar 11 04:24AM -0800 Den fredag den 10. marts 2017 kl. 23.41.17 UTC+1 skrev Paavo Helde: > >> #ifdef ARDUINO_AVR_PROMICRO > >> #define ComPort Serial1 > > The brute force method got the job done. Thanks. Agreed. Avoid those macros, they are going to bite back at you, leaving large wounds that heal slowly. The error-message you gave indicates that Serial and Serial1 were not declared where you had your typedef. You can work around that by several means. The cleanest solution is to include your serial header where you define your comport, e.g. #ifdef ARDUINO_AVR_PROMICRO #include <serial1.h> using ComPort = Serial1; #else #include <serial.h> using ComPort = Serial;
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment