Pages: [1]   Go Down
Author Topic: Defining a serial port  (Read 290 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 48
Si eres un fanático de la electrónica o informática visita www.tuelectronica.es
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
I have two libraries, Pollserial and OBD

In my program I want to work with Pollserial serial port, but obd library works with port SerialO.

Obd.cpp:
 
Quote
#ifndef OBDUART
#define OBDUART Serial
 #endif 

And to state the serial port I use (Serial0) M ain.cpp:

Quote
  #include <pollserial.h>
pollserial pserial;

What do I have to do to use the port obd.cpp pserial?

¿?
 
Quote
#ifndef OBDUART
 #include <pollserial.h>
 pollserial pserial;
#define OBDUART pserial
 #endif 

 Alone with or duplicate definition errors.
Logged

Pages: [1]   Go Up
Jump to: