/Users/James/Documents/Arduino/Moodlite/Moodlite.ino: In function 'void setup()':
Moodlite:454:60: error: invalid conversion from 'void (*)(void*)' to 'void (*)()' [-fpermissive]
trCheckNtpServer.every(TR1H, checkNtpServer, (void*)0);
^
In file included from /Users/James/Documents/Arduino/Moodlite/Moodlite.ino:31:0:
/Users/James/Documents/Arduino/libraries/Timer/Timer.h:19:10: error: initializing argument 2 of 'int8_t Timer::every(long unsigned int, void (*)(), int)' [-fpermissive]
int8_t every(unsigned long period, void (*callback)(void), int repeatCount);
^
Moodlite:454:60: error: invalid conversion from 'void*' to 'int' [-fpermissive]
trCheckNtpServer.every(TR1H, checkNtpServer, (void*)0);
^
In file included from /Users/James/Documents/Arduino/Moodlite/Moodlite.ino:31:0:
/Users/James/Documents/Arduino/libraries/Timer/Timer.h:19:10: error: initializing argument 3 of 'int8_t Timer::every(long unsigned int, void (*)(), int)' [-fpermissive]
int8_t every(unsigned long period, void (*callback)(void), int repeatCount);
^
exit status 1
invalid conversion from 'void (*)(void*)' to 'void (*)()' [-fpermissive]
I'm getting an error on line 454:
trCheckNtpServer.every(TR1H, checkNtpServer, (void*)0);
Error messages:
I have to comment it out to compile and upload.