Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi Zero serial number fails #30

Closed
ryanteck opened this issue Apr 21, 2021 · 0 comments
Closed

RPi Zero serial number fails #30

ryanteck opened this issue Apr 21, 2021 · 0 comments

Comments

@ryanteck
Copy link
Contributor

Error log:

21.04.21 21:17:59 (+0100)  diagnostics  Traceback (most recent call last):
21.04.21 21:17:59 (+0100)  diagnostics    File "/opt/nebraDiagnostics/diagnosticsProgram.py", line 55, in <module>
21.04.21 21:17:59 (+0100)  diagnostics      diagnostics["RPI"] = open("/proc/cpuinfo")\
21.04.21 21:17:59 (+0100)  diagnostics  IndexError: list index out of range

I think I got the serial number by going to a specific line which works on the 3, 3+, CM3s and 4s but as the Zero is only single core it fails.

Need to tweak so it gets it slightly differently.

https://github.com/NebraLtd/hm-diag/blob/master/diagnostics-program/diagnosticsProgram.py#L55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant