mcu: Add send_wait_ack() support to CommandWrapper

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2023-12-17 11:21:01 -05:00
parent 94719fe327
commit 83d0d2f19b
1 changed files with 3 additions and 0 deletions

View File

@ -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