Fixed 'channel' tag being mandatory
This commit is contained in:
parent
49f8bc7185
commit
13a19c7877
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ bool Device::import_chunk(Chunk const& ch)
|
||||||
id=stoi(tch["id"].strval());
|
id=stoi(tch["id"].strval());
|
||||||
|
|
||||||
//channel
|
//channel
|
||||||
if(tch["channel"].strval()=="*")
|
if(tch.subChunkPtr("channel") == nullptr || tch["channel"].strval()=="*")
|
||||||
channel=-1;
|
channel=-1;
|
||||||
else
|
else
|
||||||
channel=stoi(tch["channel"].strval());
|
channel=stoi(tch["channel"].strval());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue