
Re: Въпрос за грешка при компилиране на Ардуино код
Аз имам подобни проблеми със стара библиотека- преди може би е работила, сега ми дава грешка?
Toвa e проекта за софтуерен RTC:
https://github.com/leomil72/swRTCНе виждам някаква разлика и причина да ми я дава- с swRTCtest проекта
Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
In file included from swRTCtest.ino:17:0:
E:\Files\arduino\libraries\swRTC/swRTC.h:524:6: error: prototype for 'byte swRTC::setClockWithTimestamp(long unsigned int, int)' does not match any in class 'swRTC'
byte swRTC::setClockWithTimestamp(unsigned long timeT, int yearRef) {
^
E:\Files\arduino\libraries\swRTC/swRTC.h:92:11: error: candidate is: boolean swRTC::setClockWithTimestamp(long unsigned int, int)
boolean setClockWithTimestamp(unsigned long timeT, int yearT = 0);
^
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.