Send serial command by using existing serial connection
(dev, s, command)
| 142 | |
| 143 | |
| 144 | def send_serial(dev, s, command): |
| 145 | """Send serial command by using existing serial connection""" |
| 146 | try: |
| 147 | s.write(command) |
| 148 | except (IOError, OSError) as _ex: |
| 149 | disconnect_dev(dev.device) |
| 150 | # print("Error: ", ex) |
no test coverage detected