titus4064 / xbee-arduino

Automatically exported from code.google.com/p/xbee-arduino
GNU General Public License v3.0
0 stars 0 forks source link

using on processors without serial ports #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure arduino for attiny85 (or other chip without a serial port)
2. include XBee.h
3. Compile

What is the expected output? What do you see instead?

Program should compile.  Instead, the following error is produced:
/home/.../Arduino/libraries/XBee/XBee.cpp:769:20: error: 'Serial' was not 
declared in this scope
         _serial = &Serial;
commenting out the following 2 lines in XBee.cpp XBee() makes the code run 
fine, i can use the XBee in API mode with an attiny + softwareserial, so this 
probably needs a check to see if the chip in use has a serial port, or not call 
this (probably not required at all if softwareserial is used?)

//#else
//        _serial = &Serial;

What version of the product are you using? On what operating system?

xbee-arduino v0.5, arduino 1.06, on MacOSX as well as Ubuntu 14.04

Please provide any additional information below.

Original issue reported on code.google.com by r...@thukral.net on 8 Nov 2014 at 5:51