Merge pull request #4572 from thinkyhead/rc_digital_clock_100h

Show up to 99:59 in digital time
master
Scott Lahteine 8 years ago committed by GitHub
commit 1f15f0df5f

@ -8671,7 +8671,7 @@ void kill(const char* lcd_msg) {
UNUSED(lcd_msg);
#endif
for (int i = 5; i--;) delay(100); // Wait a short time
delay(500); // Wait a short time
cli(); // Stop interrupts
thermalManager.disable_all_heaters();

@ -744,6 +744,6 @@
/**
* emergency-command parser
*/
#if ENABLED(EMERGENCY_PARSER) && ENABLED(USBCON)
#if ENABLED(EMERGENCY_PARSER) && defined(USBCON)
#error "EMERGENCY_PARSER does not work on boards with AT90USB processors (USBCON)."
#endif

@ -145,7 +145,7 @@ struct duration_t {
* 1193046:59
*/
void toDigital(char *buffer) const {
int h = this->hour() % 24,
int h = this->hour(),
m = this->minute() % 60;
sprintf_P(buffer, PSTR("%02i:%02i"), h, m);

Loading…
Cancel
Save