Try to have everything compiling in the same time!

This commit is contained in:
Bertrand Songis
2016-03-12 20:52:03 +01:00
parent 9fa354779c
commit 6443c49285
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -19,9 +19,12 @@
*/ */
#include <stdint.h> #include <stdint.h>
#include "diskio.h"
#include "opentx.h" #include "opentx.h"
#if !defined(SIMU)
#include "diskio.h"
#endif
const char * sdCheckAndCreateDirectory(const char * path) const char * sdCheckAndCreateDirectory(const char * path)
{ {
DIR archiveFolder; DIR archiveFolder;
+3 -3
View File
@@ -23,7 +23,7 @@
#include "debug.h" #include "debug.h"
#define CHECK_DST_SIZE() \ #define CHECK_DST_SIZE() \
if (cur-dst >= dstsize) { \ if (cur-dst >= (int)dstsize) { \
TRACE("RLC encoding size too big"); \ TRACE("RLC encoding size too big"); \
return 0; \ return 0; \
} }
@@ -75,7 +75,7 @@ unsigned int compress(uint8_t * dst, unsigned int dstsize, const uint8_t * src,
#undef CHECK_DST_SIZE #undef CHECK_DST_SIZE
#define CHECK_DST_SIZE() \ #define CHECK_DST_SIZE() \
if (cur-dst >= dstsize) { \ if (cur-dst >= (int)dstsize) { \
TRACE("RLC decoding size too big"); \ TRACE("RLC decoding size too big"); \
return 0; \ return 0; \
} }
@@ -126,4 +126,4 @@ unsigned int uncompress(uint8_t * dst, unsigned int dstsize, const uint8_t * src
} }
} }
#undef CHECK_DST_SIZE #undef CHECK_DST_SIZE