Skip to content

Commit e10cef3

Browse files
committed
move SD below seperator in dir listing
1 parent b1a6ee2 commit e10cef3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/device/iec/disk.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,11 +797,17 @@ uint16_t iecDisk::sendHeader(std::string header, std::string id)
797797
if ( IEC.flags & ERROR ) return 0;
798798
}
799799

800+
801+
// if (path.size() > 2)
802+
// {
803+
// byte_count += sendLine(0, "%*s\"_\" DIR", 3, "");
804+
// if ( IEC.flags & ERROR ) return 0;
805+
// byte_count += sendLine(0, "%*s\"\\\" DIR", 3, "");
806+
// if ( IEC.flags & ERROR ) return 0;
807+
// }
800808
if (fnSDFAT.running() && _base->url.size() < 2)
801809
{
802-
byte_count += sendLine(0, "%*s\"SD\" DIR", 0, "");
803-
if ( IEC.flags & ERROR ) return 0;
804-
byte_count += sendLine(0, "%*s\"-------------------\" NFO", 0, "");
810+
byte_count += sendLine(0, "%*s\"SD\" DIR", 3, "");
805811
if ( IEC.flags & ERROR ) return 0;
806812
}
807813

0 commit comments

Comments
 (0)