Hi i'm having some problem with this piece of code.
void nexCountDown() {
if (timer.getCurrentTime() != countchecker)
{
Serial.print("t1.txt=");
Serial.print("\"");
Serial.print(timer.getCurrentTime());
Serial.print("\"");
nexSend();
}
countchecker = timer.getCurrentTime();
}
the timer.getCurrentTime() is storing the Countdown timer in a char* and it looks like this
char* Counttimer::getCurrentTime()
{
sprintf(_formatted_time, "%02d:%02d:%02d", getCurrentHours(), getCurrentMinutes(), getCurrentSeconds());
return _formatted_time;
}
when i set the countchecker also to char* the code never runs. whats the right type of variable for this to run correctly?