Commits

Trammell Hudson committed ea01c54

Fix midnight/noon detection

  • Participants
  • Parent commits f6555fe

Comments (0)

Files changed (1)

bargraph/bargraph.c

 		now.tm_hour = 12;
 
 	// Redraw at the end of the 12 hour cycle
-	if (now.tm_hour == 1 && now.tm_hour == 0 && now.tm_sec == 0)
+	if (now.tm_hour == 1 && now.tm_min == 0 && now.tm_sec == 0)
 		init();
 
 	draw_time(now.tm_hour, now.tm_min, now.tm_sec, 1);