This commit is contained in:
lady ada 2022-01-01 15:53:37 -05:00
parent 43a8f2508a
commit 34ffc3bb87

View file

@ -169,7 +169,9 @@ bool Adafruit_Floppy::goto_track(uint8_t track_num) {
if ((_track < 0) || track_num == 0) {
if (debug_serial)
debug_serial->println("Going to track 0");
uint8_t max_steps = MAX_TRACKS;
// step back a lil more than expected just in case we really seeked out
uint8_t max_steps = MAX_TRACKS + 10;
while (max_steps--) {
if (!digitalRead(_track0pin)) {
_track = 0;