We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba2ad7 commit 3a46271Copy full SHA for 3a46271
1 file changed
ttbasic/basic.cpp
@@ -4628,16 +4628,8 @@ void itype() {
4628
while(1) {
4629
rc = bfs.textOut((char *)fname.c_str(), line, sc0.getHeight());
4630
if (rc < 0) {
4631
- if (rc == -SD_ERR_OPEN_FILE) {
4632
- err = ERR_FILE_OPEN;
4633
- return;
4634
- } else if (rc == -SD_ERR_INIT) {
4635
- err = ERR_SD_NOT_READY;
4636
4637
- } else if (rc == -SD_ERR_NOT_FILE) {
4638
- err = ERR_BAD_FNAME;
4639
4640
- }
+ err = -rc;
+ return;
4641
} else if (rc == 0) {
4642
break;
4643
}
0 commit comments