Selaa lähdekoodia

Use safeload for assets

jamesbowman 9 vuotta sitten
vanhempi
commit
d926c71179
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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);