Friday, March 10, 2017

Digest for comp.lang.c++@googlegroups.com - 8 updates in 4 topics

Mark Storkamp <mstorkamp@yahoo.com>: Mar 10 02:49PM -0600

In article <mstorkamp-08467D.12254909032017@88-209-239-213.giganet.hu>,
 
> > Comport.print(...);
 
> Thanks, that's exactly what I need. Don't know if it's C++11 or not, but
> one way or the other should do it.
 
No luck. Neither method worked. The error was "'Serial1' does not name a
type" for either approach. As a guess, it's because Serial1 is not the
type of the class, but an instantiation of some class that is set up for
me behind the scene.
 
A more simple:
 
#ifdef ARDUINO_AVR_PROMICRO
#define ComPort Serial1
#else
#define ComPort Serial

No comments: