aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-12-29 12:57:29 -0800
committerpx4dev <px4@purgatory.org>2012-12-29 12:57:29 -0800
commitd5da457e292d5c4276774c3da85b3805d3d2bbb7 (patch)
treeb45407dadd2c4a153295daf421c07e15ebf231a7 /apps/px4io
parent35c82ff2fc63ab823770f9776e6b6a0f81cd4452 (diff)
downloadpx4-firmware-d5da457e292d5c4276774c3da85b3805d3d2bbb7.tar.gz
px4-firmware-d5da457e292d5c4276774c3da85b3805d3d2bbb7.tar.bz2
px4-firmware-d5da457e292d5c4276774c3da85b3805d3d2bbb7.zip
Fix PX4IO to run C++ static ctors
Diffstat (limited to 'apps/px4io')
-rw-r--r--apps/px4io/px4io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/px4io/px4io.c b/apps/px4io/px4io.c
index a3ac9e3e7..230906662 100644
--- a/apps/px4io/px4io.c
+++ b/apps/px4io/px4io.c
@@ -55,10 +55,15 @@
__EXPORT int user_start(int argc, char *argv[]);
+extern void up_cxxinitialize(void);
+
struct sys_state_s system_state;
int user_start(int argc, char *argv[])
{
+ /* run C++ ctors before we go any further */
+ up_cxxinitialize();
+
/* reset all to zero */
memset(&system_state, 0, sizeof(system_state));