mirror of
https://github.com/revspace/operame
synced 2024-12-04 13:47:29 +00:00
Avoid possibility of using char* without initialization
This commit is contained in:
parent
fe392acfbd
commit
663816223b
@ -358,7 +358,7 @@ void mhz_setup() {
|
||||
mhz.begin(hwserial1);
|
||||
// mhz.setFilter(true, true); Library filter doesn't handle 0436
|
||||
mhz.autoCalibration(true);
|
||||
char v[5];
|
||||
char v[5] = {};
|
||||
mhz.getVersion(v);
|
||||
v[4] = '\0';
|
||||
if (strcmp("0436", v) == 0) mhz_co2_init = 436;
|
||||
|
Loading…
Reference in New Issue
Block a user