I'm having some difficulty being explicit when creating a Metro class. Here's a distillation of the problem:
#include "Metro.h"
// This works:
// Metro chgGrpMetro = Metro(60000, true);
// This does not work (.check never goes true):
Metro chgGrpMetro = Metro(60*1000, true);
void setup() {
Serial.begin(9600);
Serial.println("Starting test");
};
void loop(){
if ( chgGrpMetro.check() ) {
Serial.println("check = true");
}
}
Can you help?
73,
Gary