Try to have everything compiling in the same time!
This commit is contained in:
@@ -19,9 +19,12 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include "diskio.h"
|
||||
#include "opentx.h"
|
||||
|
||||
#if !defined(SIMU)
|
||||
#include "diskio.h"
|
||||
#endif
|
||||
|
||||
const char * sdCheckAndCreateDirectory(const char * path)
|
||||
{
|
||||
DIR archiveFolder;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "debug.h"
|
||||
|
||||
#define CHECK_DST_SIZE() \
|
||||
if (cur-dst >= dstsize) { \
|
||||
if (cur-dst >= (int)dstsize) { \
|
||||
TRACE("RLC encoding size too big"); \
|
||||
return 0; \
|
||||
}
|
||||
@@ -75,7 +75,7 @@ unsigned int compress(uint8_t * dst, unsigned int dstsize, const uint8_t * src,
|
||||
|
||||
#undef CHECK_DST_SIZE
|
||||
#define CHECK_DST_SIZE() \
|
||||
if (cur-dst >= dstsize) { \
|
||||
if (cur-dst >= (int)dstsize) { \
|
||||
TRACE("RLC decoding size too big"); \
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user