Forráskód Böngészése

Use safeload for assets

jamesbowman 9 éve
szülő
commit
d926c71179
1 módosított fájl, 1 hozzáadás és 2 törlés
  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);