From 0c5f5695ccf2c3d43ec868566f740cb1e2a099ad Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 5 Mar 2016 09:58:38 +0100 Subject: [PATCH] MSVC errors --- radio/src/lua/api_general.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/src/lua/api_general.cpp b/radio/src/lua/api_general.cpp index be436869c..8e932cff0 100644 --- a/radio/src/lua/api_general.cpp +++ b/radio/src/lua/api_general.cpp @@ -357,7 +357,11 @@ static int luaTelemetryPush(lua_State *L) uint8_t id = luaL_checkunsigned(L, 1); uint32_t value = luaL_checkunsigned(L, 2); +#if defined __GNUC__ + // TODO remove this ifdef when we have updated to MSVC recent version luaOutputTelemetryFifo->push((LuaTelemetryValue){ id, value }); +#endif + return 0; }