Fix incorrect parsing of emitter config
parent
be75263c2c
commit
cb67dcf81f
|
@ -52,7 +52,7 @@ static bool parse_emitter_info(char* emitter_info_str, EmitterConfig_t* conf)
|
||||||
if (data_count == 8)
|
if (data_count == 8)
|
||||||
{
|
{
|
||||||
conf->type = (emitter_type == 'b') ? EMITTER_BURST : EMITTER_UNKNOWN;
|
conf->type = (emitter_type == 'b') ? EMITTER_BURST : EMITTER_UNKNOWN;
|
||||||
conf->one_shot = (one_shot == 1);
|
conf->one_shot = (one_shot == '1');
|
||||||
}
|
}
|
||||||
return data_count == 8;
|
return data_count == 8;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue