

def setPeriod(self, counts):
    msg = message.ChannelPeriodMessage(number=self.number)
    msg.setChannelPeriod(counts)
    self.node.driver.write(counts.encode())
    if (self.node.evm.waitForAck(msg) != RESPONSE_NO_ERROR):
        raise ChannelError('Could not set channel period.')

dataset/ETHPy150Open mvillalba/python-ant/src/ant/core/node.py Channel.setPeriod/VarMisuse@40/46 `msg`->`counts`