Review comments

- Indentation issues
- Inconsistencies
This commit is contained in:
Danny Staple
2023-02-06 20:26:04 +00:00
parent 542e92a3ee
commit ae79a2f8c1
11 changed files with 193 additions and 62 deletions
+5 -5
View File
@@ -56,12 +56,12 @@ def send_json(data):
def read_json():
try:
data = robot.uart.readline()
decoded = data.decode()
return json.loads(decoded)
data = robot.uart.readline()
decoded = data.decode()
return json.loads(decoded)
except (UnicodeError, ValueError):
print("Invalid data")
return None
print("Invalid data")
return None
def send_poses(samples):