diff --git a/firmware/global.h b/firmware/global.h index 5f8a0715a1..53746e1cbe 100644 --- a/firmware/global.h +++ b/firmware/global.h @@ -8,6 +8,11 @@ #ifndef GLOBAL_H_ #define GLOBAL_H_ +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + #include #include #include @@ -129,4 +134,8 @@ typedef VirtualTimer virtual_timer_t; enginePins.communicationPin.setValue(1); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* GLOBAL_H_ */