Skip to content

Commit a6dd9e4

Browse files
siara-ccsiara-in
authored andcommitted
Fix issue with esp32_Sync
1 parent c54ed29 commit a6dd9e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/esp32.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <stdlib.h>
1212
#include <string.h>
1313
#include <stdint.h>
14+
#include <unistd.h>
1415
#include <time.h>
1516
#include <sqlite3.h>
1617
#include <Arduino.h>
@@ -509,7 +510,7 @@ int esp32_Sync(sqlite3_file *id, int flags)
509510

510511
int rc = fflush( file->fd );
511512
fsync(fileno(file->fd));
512-
dbg_printf("esp32_Sync: %d\n", rc);
513+
dbg_printf("esp32_Sync( %s: ): %d \n",file->name, rc);
513514

514515
return rc ? SQLITE_IOERR_FSYNC : SQLITE_OK;
515516
}

0 commit comments

Comments
 (0)