瀏覽代碼

Use safeload for assets

jamesbowman 9 年之前
父節點
當前提交
d926c71179
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      selftest.ino

+ 1 - 2
selftest.ino

@@ -162,8 +162,7 @@ static byte test_storage(void)
 static byte test_SDcard(void)
 {
   for (byte i = 0; i < 2; i++) {
-    if (!GD.load("selftest.gd2"))
-      return 0;
+    GD.safeload("selftest.gd2");
     uint32_t pcrc = GD.cmd_memcrc(0, ASSETS_END);
     GD.finish();
     uint32_t crc = GD.rd32(pcrc);