Fix LG nbits

This commit is contained in:
Otto Winter 2019-07-03 17:16:46 +02:00
parent 85195436c1
commit 6516a6ff7e
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -250,7 +250,7 @@ def lg_dumper(var, config):
def lg_action(var, config, args): def lg_action(var, config, args):
template_ = yield cg.templatable(config[CONF_DATA], args, cg.uint32) template_ = yield cg.templatable(config[CONF_DATA], args, cg.uint32)
cg.add(var.set_data(template_)) cg.add(var.set_data(template_))
template_ = yield cg.templatable(config[CONF_DATA], args, cg.uint8) template_ = yield cg.templatable(config[CONF_NBITS], args, cg.uint8)
cg.add(var.set_nbits(template_)) cg.add(var.set_nbits(template_))