0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-31 06:02:16 +00:00

🩹 Fix ESP32 servos, SD_IGNORE_AT_STARTUP

Fixes #24007
Followup to aaf5bf02
This commit is contained in:
Scott Lahteine 2022-04-21 02:26:17 -05:00
parent 3905234b0d
commit d507ea117e
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ typedef Servo hal_servo_t;
//
void tone(const pin_t _pin, const unsigned int frequency, const unsigned long duration=0);
void noTone(const pin_t _pin);
int8_t get_pwm_channel(const pin_t pin, const uint32_t freq, const uint16_t res);
void analogWrite(const pin_t pin, const uint16_t value, const uint32_t freq=PWM_FREQUENCY, const uint16_t res=8);
//

View file

@ -493,7 +493,7 @@ void CardReader::manage_media() {
safe_delay(500); // Some boards need a delay to get settled
// Try to mount the media (only later with SD_IGNORE_AT_STARTUP)
if (TERN1(SD_IGNORE_AT_STARTUP, media_stat.inited)) mount();
if (TERN1(SD_IGNORE_AT_STARTUP, old_stat != 2)) mount();
if (!isMounted()) stat = 0; // Not mounted?
TERN_(RESET_STEPPERS_ON_MEDIA_INSERT, reset_stepper_drivers()); // Workaround for Cheetah bug