Skip to content

Commit a35df68

Browse files
thinkyheadLCh-77
authored andcommitted
🩹 Fix ESP32 servos, SD_IGNORE_AT_STARTUP
Fixes MarlinFirmware#24007 Followup to aaf5bf0
1 parent 951cf4c commit a35df68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Marlin/src/HAL/ESP32/HAL.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ typedef Servo hal_servo_t;
8989
//
9090
void tone(const pin_t _pin, const unsigned int frequency, const unsigned long duration=0);
9191
void noTone(const pin_t _pin);
92-
92+
int8_t get_pwm_channel(const pin_t pin, const uint32_t freq, const uint16_t res);
9393
void analogWrite(const pin_t pin, const uint16_t value, const uint32_t freq=PWM_FREQUENCY, const uint16_t res=8);
9494

9595
//

Marlin/src/sd/cardreader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ void CardReader::manage_media() {
493493
safe_delay(500); // Some boards need a delay to get settled
494494

495495
// Try to mount the media (only later with SD_IGNORE_AT_STARTUP)
496-
if (TERN1(SD_IGNORE_AT_STARTUP, media_stat.inited)) mount();
496+
if (TERN1(SD_IGNORE_AT_STARTUP, old_stat != 2)) mount();
497497
if (!isMounted()) stat = 0; // Not mounted?
498498

499499
TERN_(RESET_STEPPERS_ON_MEDIA_INSERT, reset_stepper_drivers()); // Workaround for Cheetah bug

0 commit comments

Comments
 (0)