sparkfun / OpenLog

Open Source Hardware Datalogger
https://www.sparkfun.com/products/9530
Other
553 stars 216 forks source link

won't compile in arduino 1.0.5 #171

Closed jerkey closed 10 years ago

jerkey commented 10 years ago

after setting up the latest libraries properly:

In file included from OpenLog_v3.ino:180: /Users/possum/Documents/Arduino/libraries/SerialPort/SerialPort.h:194:2: error: #error Invalid SP_RX_BUF_OVERRUN bit In constructor 'SerialPort<PortNumber, RxBufSize, TxBufSize>::SerialPort() [with unsigned char PortNumber = 0u, unsigned int RxBufSize = 750u, unsigned int TxBufSize = 0u]', inlined from 'void __static_initialization_and_destruction_0(int, int)' at OpenLog_v3.ino:184, inlined from '(static initializers for /Users/possum/Documents/Arduino/libraries/SerialPort/SerialPort.h)' at OpenLog_v3.ino:2507: /Users/possum/Documents/Arduino/libraries/SerialPort/SerialPort.h:306: error: call to 'badPortNumber' declared with attribute error: Bad port number

nseidle commented 10 years ago

Hmm, it sounds like you might not have the correct library installed. OpenLog currently uses the 20120106 version of Bill's library. Please see the flashing firmware page of the Wiki. I've also decided to add the dependent libraries to the repo. Hopefully this helps. Please install Bill's beta SerialPort 20120106 library and try compiling again. If you continue to hit a wall, please let us know!