Update diagnostics/os_diagnostics.py
This commit is contained in:
@@ -5,7 +5,7 @@ class OSDiagnostics:
|
||||
self.motorclass = motorclass
|
||||
self.successfultests = 0
|
||||
self.failedtests = {}
|
||||
def testenodev:
|
||||
def testenodev(self):
|
||||
try:
|
||||
# Try to initialize a motor on an empty port (Port.A)
|
||||
print("Starting Test 6/9: ENODEV - Device Not Found Error")
|
||||
@@ -23,6 +23,6 @@ class OSDiagnostics:
|
||||
else:
|
||||
print(f"Another error occurred with code: {ex.errno}.\nCompleted Test 6/9: ENODEV - FAILED")
|
||||
self.failedtests["ENODEV"] = ex.errno
|
||||
def print_results:
|
||||
def print_results(self):
|
||||
for key, value in self.failedtests():
|
||||
print(f"{key}: {value}")
|
||||
|
||||
Reference in New Issue
Block a user