rename global conn

This commit is contained in:
Philippe Teuwen
2021-08-21 20:21:08 +02:00
parent 8280fc3c07
commit 6a2f2b3979
23 changed files with 87 additions and 87 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ int flashmem_spiffs_load(char *destfn, uint8_t *data, size_t datalen) {
uint32_t bytes_remaining = datalen;
// fast push mode
conn.block_after_ACK = true;
g_conn.block_after_ACK = true;
while (bytes_remaining > 0) {
@@ -73,7 +73,7 @@ out:
clearCommandBuffer();
// turn off fast push mode
conn.block_after_ACK = false;
g_conn.block_after_ACK = false;
// We want to unmount after these to set things back to normal but more than this
// unmouting ensure that SPIFFS CACHES are all flushed so our file is actually written on memory