Skip to content

Commit

Permalink
fix: some cppcheck errors (#4942)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick authored May 2, 2024
1 parent e48e82a commit e72f1d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/afhds2a_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ AFHDS2ASettings::AFHDS2ASettings(Window* parent, const FlexGridLayout& g,
md->flysky.rfPower = newValue;
resetPulsesAFHDS2();
});
}
#endif
}

hideAFHDS2Options();
}
Expand Down
2 changes: 1 addition & 1 deletion radio/src/lua/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ void luaInit()
#if defined(USE_BIN_ALLOCATOR)
L = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator!
#elif defined(LUA_ALLOCATOR_TRACER)
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace);
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace));
lsScriptsTrace.script = "lua_newstate(scripts)";
L = lua_newstate(tracer_alloc, &lsScriptsTrace); //we use tracer allocator
#else
Expand Down

0 comments on commit e72f1d2

Please sign in to comment.