mcu: Add send_wait_ack() support to CommandWrapper
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
94719fe327
commit
83d0d2f19b
|
@ -91,6 +91,9 @@ class CommandWrapper:
|
||||||
def send(self, data=(), minclock=0, reqclock=0):
|
def send(self, data=(), minclock=0, reqclock=0):
|
||||||
cmd = self._cmd.encode(data)
|
cmd = self._cmd.encode(data)
|
||||||
self._serial.raw_send(cmd, minclock, reqclock, self._cmd_queue)
|
self._serial.raw_send(cmd, minclock, reqclock, self._cmd_queue)
|
||||||
|
def send_wait_ack(self, data=(), minclock=0, reqclock=0):
|
||||||
|
cmd = self._cmd.encode(data)
|
||||||
|
self._serial.raw_send_wait_ack(cmd, minclock, reqclock, self._cmd_queue)
|
||||||
def get_command_tag(self):
|
def get_command_tag(self):
|
||||||
return self._msgtag
|
return self._msgtag
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue