Scripts: remove padding from cli output detection (#790)

This commit is contained in:
あく 2021-10-26 18:29:03 +03:00 committed by GitHub
parent ae016ce464
commit 122e0a89ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ class FlipperStorage:
self.port.reset_input_buffer() self.port.reset_input_buffer()
# Send a command with a known syntax to make sure the buffer is flushed # Send a command with a known syntax to make sure the buffer is flushed
self.send("device_info\r") self.send("device_info\r")
self.read.until("hardware_model :") self.read.until("hardware_model")
# And read buffer until we get prompt # And read buffer until we get prompt
self.read.until(self.CLI_PROMPT) self.read.until(self.CLI_PROMPT)