Merge pull request #4572 from thinkyhead/rc_digital_clock_100h

Show up to 99:59 in digital time
This commit is contained in:
Scott Lahteine 2016-08-08 22:28:29 -07:00 committed by GitHub
commit 1f15f0df5f
3 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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

View file

@ -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);