1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 03:49:52 +03:00

Massive clean thanks to Schwabe : unifdef -m -DCPUARM -UCPUM64 -UCPUM2560 -UPCBSTD -UPCBMEGA2560 -UPCBGRUVIN9X -UPCB9X $(find . -name "*.cpp" -or -name "*.h")

This commit is contained in:
3djc 2018-07-05 08:04:55 +02:00
parent c032b30247
commit dd632969f3
106 changed files with 27 additions and 6626 deletions

View file

@ -44,7 +44,6 @@ char idx2char(int8_t idx)
return ' ';
}
#if defined(CPUARM) || defined(SIMU)
int8_t char2idx(char c)
{
if (c == '_') return 37;
@ -78,9 +77,7 @@ int zchar2str(char * dest, const char * src, int size)
} while (size >= 0 && dest[size] == ' ');
return size+1;
}
#endif
#if defined(CPUARM)
unsigned int effectiveLen(const char * str, unsigned int size)
{
while (size > 0) {
@ -143,7 +140,6 @@ char * strcat_zchar(char * dest, const char * name, uint8_t size, const char * d
return &dest[len];
}
#endif
#endif
#if defined(CPUARM) && !defined(BOOT)
char * getStringAtIndex(char * dest, const char * s, int idx)
@ -438,7 +434,6 @@ char * strAppendSigned(char * dest, int32_t value, uint8_t digits, uint8_t radix
return strAppendUnsigned(dest, (uint32_t)value, digits, radix);
}
#if defined(CPUARM) || defined(SDCARD)
char * strAppend(char * dest, const char * source, int len)
{
while ((*dest++ = *source++)) {
@ -516,4 +511,3 @@ char * strAppendDate(char * str, bool time)
}
}
#endif
#endif