chore(radio): cleanup -Wzero-as-null-pointer-constant warnings (#4851)

This commit is contained in:
ThomasKuehne
2024-04-15 09:31:46 +10:00
committed by GitHub
parent 05d869e988
commit 8225fb21c5
17 changed files with 37 additions and 37 deletions
+3 -3
View File
@@ -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