Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __call__(self, code="", repeatCount=0, correctnessCount=0):
if self.plugin.client is None:
return
#Send pronto code:
freq, transmitValues = Pronto2MceTimings(code,repeatCount)
transmitCode = RoundAndPackTimings(transmitValues)
n = len(transmitCode)
#Port is set to zero, it is populated automatically
header = pack(7*ptr_fmt,2,int(1000000./freq),0,0,0,1,len(transmitCode))
transmitData = header + transmitCode
self.plugin.client.Transmit(transmitData)