auto-sync

This commit is contained in:
rusEfi 2016-08-09 23:03:58 -04:00
parent 065ef583ce
commit 2043175015
2 changed files with 5 additions and 2 deletions

View File

@ -13,8 +13,6 @@
#include "datalogging.h"
#include "histogram.h"
#define _MAX_FILLER 11
const char * boolToString(bool value) {
return value ? "Yes" : "No";
}
@ -118,6 +116,9 @@ int atoi(const char *string) {
static char todofixthismesswithcopy[100];
/**
* WARNING: due to implementation details specifid buffer should be at least size of '_MAX_FILLER'
*/
static char *ltoa_internal(char *p, long num, unsigned radix) {
int i;
char *q;

View File

@ -11,6 +11,8 @@
#include <stdint.h>
#include "global.h"
#define _MAX_FILLER 11
// http://en.wikipedia.org/wiki/Endianness
#define SWAP_UINT16(x) ((x) << 8) | ((x) >> 8)