Browse Source

Merge pull request #4572 from thinkyhead/rc_digital_clock_100h

Show up to 99:59 in digital time
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
1f15f0df5f
  1. 2
      Marlin/Marlin_main.cpp
  2. 2
      Marlin/SanityCheck.h
  3. 2
      Marlin/duration_t.h

2
Marlin/Marlin_main.cpp

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

2
Marlin/SanityCheck.h

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

2
Marlin/duration_t.h

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