You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use this form only to report code defects or bugs.
Description
In timeLib.h, there are 4 usefull macros that in its current state are not useable"
/* Useful Macros for converting elapsed time to a time_t */#defineminutesToTime_t ((M)) ( (M) * SECS_PER_MIN)
#definehoursToTime_t ((H)) ( (H) * SECS_PER_HOUR)
#definedaysToTime_t ((D)) ( (D) * SECS_PER_DAY) // fixed on Jul 22 2011
#defineweeksToTime_t ((W)) ( (W) * SECS_PER_WEEK)
The Space between macro name and its argument list is not allowed, and must be removed. Also the double braces in arglist should be changed to singe.
Steps To Reproduce Problem
Use in code and try to compile. It fails.
Hardware & Software
unrelated.
Arduino Sketch
// Change the code below by your sketch (please try to give the smallest code which demonstrates the problem)
#include<Arduino.h>
#include"TimeLib.h"voidsetup() {
time_t tt = minutesToTime_t(60);
}
voidloop() {
}
Errors or Incorrect Output
The text was updated successfully, but these errors were encountered:
Please use this form only to report code defects or bugs.
Description
In timeLib.h, there are 4 usefull macros that in its current state are not useable"
The Space between macro name and its argument list is not allowed, and must be removed. Also the double braces in arglist should be changed to singe.
Steps To Reproduce Problem
Use in code and try to compile. It fails.
Hardware & Software
unrelated.
Arduino Sketch
Errors or Incorrect Output
The text was updated successfully, but these errors were encountered: