chore(radio): cleanup -Wzero-as-null-pointer-constant warnings (#4851)
This commit is contained in:
@@ -74,7 +74,7 @@ uint8_t instructionsPercent = 0;
|
||||
tmr10ms_t luaCycleStart;
|
||||
char lua_warning_info[LUA_WARNING_INFO_LEN+1];
|
||||
uint8_t errorState;
|
||||
struct our_longjmp * global_lj = 0;
|
||||
struct our_longjmp * global_lj = nullptr;
|
||||
#if defined(COLORLCD)
|
||||
uint32_t luaExtraMemoryUsage = 0;
|
||||
#endif
|
||||
@@ -932,7 +932,7 @@ static void luaLoadScripts(bool init, const char * filename = nullptr)
|
||||
// 1. run chunk() 2. run init(), if available:
|
||||
do {
|
||||
// Resume running the coroutine
|
||||
luaStatus = lua_resume(lsScripts, 0, 0);
|
||||
luaStatus = lua_resume(lsScripts, nullptr, 0);
|
||||
|
||||
if (luaStatus == LUA_YIELD) {
|
||||
// Coroutine yielded - wait for the next cycle
|
||||
@@ -1156,7 +1156,7 @@ static bool resumeLua(bool init, bool allowLcdUsage)
|
||||
fullGC = false;
|
||||
|
||||
// Resume running the coroutine
|
||||
luaStatus = lua_resume(lsScripts, 0, inputsCount);
|
||||
luaStatus = lua_resume(lsScripts, nullptr, inputsCount);
|
||||
|
||||
if (luaStatus == LUA_YIELD) {
|
||||
// Coroutine yielded - wait for the next cycle
|
||||
|
||||
Reference in New Issue
Block a user