Skip to content

Commit

Permalink
move SD below seperator in dir listing
Browse files Browse the repository at this point in the history
  • Loading branch information
idolpx committed Jul 6, 2023
1 parent b1a6ee2 commit e10cef3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/device/iec/disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,17 @@ uint16_t iecDisk::sendHeader(std::string header, std::string id)
if ( IEC.flags & ERROR ) return 0;
}


// if (path.size() > 2)
// {
// byte_count += sendLine(0, "%*s\"_\" DIR", 3, "");
// if ( IEC.flags & ERROR ) return 0;
// byte_count += sendLine(0, "%*s\"\\\" DIR", 3, "");
// if ( IEC.flags & ERROR ) return 0;
// }
if (fnSDFAT.running() && _base->url.size() < 2)
{
byte_count += sendLine(0, "%*s\"SD\" DIR", 0, "");
if ( IEC.flags & ERROR ) return 0;
byte_count += sendLine(0, "%*s\"-------------------\" NFO", 0, "");
byte_count += sendLine(0, "%*s\"SD\" DIR", 3, "");
if ( IEC.flags & ERROR ) return 0;
}

Expand Down

0 comments on commit e10cef3

Please sign in to comment.