debug(fat32): sfn_from_lfn 打印 dot_pos/i/ext_i 与生成的 sfn——Hello 生成 HELLO 空格(缺扩展名),定位 for-in 遍历/扩展名写入间歇性失败
This commit is contained in:
1 parent
e49c74fb12
commit
f963fb16ad
1 file changed
+4
@@ -262,6 +262,10 @@ def sfn_from_lfn(lfn: t.CConst | t.CChar | t.CPtr, sfn: t.CChar | t.CPtr):
|
||||
sfn[6] = '~'
|
||||
sfn[7] = '1'
|
||||
sfn[11] = 0
|
||||
# [DIAG] 定位 sfn 缺扩展名(Hello 显示 HELLO 空格):打印 name 与 dot_pos/ext_i
|
||||
_dsf: t.CArray[t.CChar, 80]
|
||||
viperlib.snprintf(c.Addr(_dsf), 80, "[sfn2] dot=%d i=%d ext=%d sfn=%.11s\n", dot_pos, i, ext_i, sfn)
|
||||
serial.puts(c.Addr(_dsf))
|
||||
|
||||
def sfn_to_str(sfn: t.CConst | t.CChar | t.CPtr, out: t.CChar | t.CPtr):
|
||||
i: t.CInt = 0
|
||||
|
||||
Reference in new issue
Block a user