1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +03:00

Constructors called on static objects - I really need them now :)

This commit is contained in:
bsongis 2014-09-20 13:01:50 +02:00
parent 80eb34cea2
commit 8032d6ee66
2 changed files with 10 additions and 1 deletions

View file

@ -36,8 +36,14 @@
#include "opentx.h" #include "opentx.h"
#if !defined(BOOT)
const pm_char s_charTab[] PROGMEM = "_-.,"; const pm_char s_charTab[] PROGMEM = "_-.,";
char hex2zchar(uint8_t hex)
{
return (hex >= 10 ? hex-9 : 27+hex);
}
char idx2char(int8_t idx) char idx2char(int8_t idx)
{ {
if (idx == 0) return ' '; if (idx == 0) return ' ';
@ -142,6 +148,7 @@ char * strcat_zchar(char * dest, char * name, uint8_t size, const char *defaultN
return &dest[len]; return &dest[len];
} }
#endif #endif
#endif
#if defined(CPUARM) || defined(SDCARD) #if defined(CPUARM) || defined(SDCARD)
char * strAppend(char * dest, const char * source) char * strAppend(char * dest, const char * source)

View file

@ -100,6 +100,8 @@ LoopFillZerobss:
bcc FillZerobss bcc FillZerobss
/* Call the clock system intitialization function.*/ /* Call the clock system intitialization function.*/
bl SystemInit bl SystemInit
/* Call C++ constructors for static objects */
bl __libc_init_array
/* Call the application's entry point.*/ /* Call the application's entry point.*/
bl main bl main
bx lr bx lr