Skip to content

Instantly share code, notes, and snippets.

@AutomationD
Last active August 29, 2015 14:19
Show Gist options
  • Save AutomationD/0183f3ca9df19ce7f9d7 to your computer and use it in GitHub Desktop.
Save AutomationD/0183f3ca9df19ce7f9d7 to your computer and use it in GitHub Desktop.
Spiffy patches for Windows
8,9c8,9
< //16k
< #define MAX_SIZE 4*4*1024
---
> //192k
> #define MAX_SIZE 12*4*4*1024
13a14
> #include <errno.h>
183c184
< s32_t errno;
---
> s32_t errnos;
104c104
< return fs->errno;
---
> return fs->errnos;
545c545
< fs->errno = res;
---
> fs->errnos = res;
570c570
< fs->errno = SPIFFS_ERR_NOT_MOUNTED;
---
> fs->errnos = SPIFFS_ERR_NOT_MOUNTED;
585c585
< fs->errno = SPIFFS_ERR_NOT_MOUNTED;
---
> fs->errnos = SPIFFS_ERR_NOT_MOUNTED;
629c629
< d->fs->errno = SPIFFS_ERR_NOT_MOUNTED;
---
> d->fs->errnos = SPIFFS_ERR_NOT_MOUNTED;
654c654
< d->fs->errno = res;
---
> d->fs->errnos = res;
781c781
< spiffs_printf("last_errno: %i\n", fs->errno);
---
> spiffs_printf("last_errno: %i\n", fs->errnos);
250c250
< (fs)->errno = SPIFFS_ERR_NOT_MOUNTED; \
---
> (fs)->errnos = SPIFFS_ERR_NOT_MOUNTED; \
256c256
< (fs)->errno = (res); \
---
> (fs)->errnos = (res); \
262c262
< (fs)->errno = (res); \
---
> (fs)->errnos = (res); \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment