

def setFrequency(self, frequency):
    msg = message.ChannelFrequencyMessage(number=self.number)
    msg.setFrequency(frequency)
    self.node.driver.write(msg.encode())
    if (msg.node.evm.waitForAck(msg) != RESPONSE_NO_ERROR):
        raise ChannelError('Could not set channel frequency.')

dataset/ETHPy150Open mvillalba/python-ant/src/ant/core/node.py Channel.setFrequency/VarMisuse@49/56 `self`->`msg`