Device
has a member variable named hour
which takes precedence during name lookup. You need to use the scope operator to instruct the compiler to explicitly use the global function named hour
.
#include <Time.h>
void Device::checkTimedEvent() {
if(::hour() == hour[timedIndex]) {
// ^^ fully qualified name using scope operator
Serial.println("TIME!!!!!: ");
}
}