Joined
Last Online
Recent Posts
posted in Firmware read more

Actually I found a solution that worked for me.

I changed the code from:

<pre><code> activeSerial->print(F("{"event":"version", "name":""+String(BUILDNAME)+
#ifdef BUILD_VERSION
"", "version":""+String(BUILD_VERSION)+
#endif
"", "memory":""));</code></pre>

to:

<pre><code> activeSerial->print(F("{"event":"version", "name":""));
activeSerial->print(String(BUILDNAME));
#ifdef BUILD_VERSION
activeSerial->print(F("", "version":""));
activeSerial->print(String(BUILD_VERSION));
#endif
activeSerial->print(F("", "memory":""));</code></pre>

posted in Firmware read more

Hi guys!

I received my CANBusTriple yesterday, and now I'm trying to follow "Getting Started", but when I click "Build and Upload" button, I get this:

In file included from C:\Users\elieser.leao\Documents\Arduino\hardware\CANBus-Triple\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\elieser.leao\Documents\Arduino\hardware\CANBus-Triple\avr\libraries\SPI/SPI.h:17,
from CANBusTriple.ino:9:
SerialCommand.h: In member function 'void SerialCommand::printSystemDebug()':
C:\Users\elieser.leao\Documents\Arduino\hardware\CANBus-Triple\avr\cores\arduino/WString.h:38:74: error: initializer fails to determine size of '__c'
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
^
SerialCommand.h:461:23: note: in expansion of macro 'F'
activeSerial->print(F("{"event":"version", "name":""+String(BUILDNAME)+
^
C:\Users\elieser.leao\Documents\Arduino\hardware\CANBus-Triple\avr\cores\arduino/WString.h:38:74: error: array must be initialized with a brace-enclosed initializer
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
^
SerialCommand.h:461:23: note: in expansion of macro 'F'
activeSerial->print(F("{"event":"version", "name":""+String(BUILDNAME)+
^
Error compiling.

How to solve?

Thanks.