We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4baaaf6 commit 376690cCopy full SHA for 376690c
app/modules/bme280_math.c
@@ -246,12 +246,16 @@ int bme280_lua_setup(lua_State* L) {
246
#undef r16sLE_buf
247
248
int i = 1;
249
+ char cfg[2]={'\0', '\0'};
250
lua_newtable(L); /* configuration table */
- lua_pushfstring(L, "%c", config);
251
+ cfg[0]=(char)config;
252
+ lua_pushstring(L, cfg);
253
lua_rawseti(L, -2, i++);
- lua_pushfstring(L, "%c", bme280_ossh);
254
+ cfg[0]=(char)bme280_ossh;
255
256
- lua_pushfstring(L, "%c", bme280_mode);
257
+ cfg[0]=(char)bme280_mode;
258
259
lua_rawseti(L, -2, i);
260
return 2;
261
}
0 commit comments