Below is an error I received compiling the example for the mega. It compiles with the Uno.
Any help would be great.
Arduino: 1.6.1 (Windows 8.1), Board: “Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)”
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp: In function ‘void suli_uart_write_float(void*, int16, float, uint8)’:
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp:399:42: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
return Serial1.print(num, decimal);
^
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp:403:42: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
return Serial2.print(num, decimal);
^
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp:407:42: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
return Serial3.print(num, decimal);
^
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp: In function ‘void suli_uart_write_int(void*, int16, int32)’:
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp:434:33: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
return Serial1.print(num);
^
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp:438:33: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
return Serial2.print(num);
^
C:\Program Files (x86)\Arduino\libraries\Suli_Arduino\Suli.cpp:442:33: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
return Serial3.print(num);
^
Error compiling.
This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.