Skip to content

Commit

Permalink
Update Galea emulator to support impedance commands
Browse files Browse the repository at this point in the history
  • Loading branch information
retiutut committed Oct 26, 2023
1 parent f8ff8c2 commit dd1e1ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emulator/brainflow_emulator/galea_manual_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def run(self):
self.start_streaming_time
elif msg in Message.ack_values.value or msg.decode('utf-8').startswith('x'):
self.server_socket.sendto(Message.ack_from_device.value, self.addr)
elif msg in Message.ack_values.value or msg.decode('utf-8').startswith('z'):
self.server_socket.sendto(Message.ack_from_device.value, self.addr)
elif msg == Message.time_calc_command.value:
cur_time = time.time()
resp = bytearray(struct.pack('d', (cur_time - start_time) * 1000))
Expand Down

0 comments on commit dd1e1ea

Please sign in to comment.