Try to have everything compiling in the same time!
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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; \
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user