TolpuddleSartre:
delay_function_for_xxxmin/hour();So, "delay_function_for_xxxmin" is some numeric value and "hour" is a function returning what? The current hour?
The result of the division being what? You don't assign it to anything.
The psuedocode was suggesting that the function would delay for some number of minutes or hours, not that it was dividing anything.
void delayMinutes(int minutesToWaste)
{
for(int m=0; m<minutesToWaste; m++)
{
delay(60 * 1000UL); // waste 60 seconds
}
}
void delayHours(int hoursToWaste)
{
for(int h=0; h<hoursToWaste; h++)
{
delayMinutes(60);
}
}