Last active
March 31, 2022 13:53
-
-
Save nbuchwitz/ed177e23777ce4ab81fd338ca4a95ef0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/bin/pictory_configcheck 2022-01-24 11:13:06.000000000 +0100 | |
+++ /usr/bin/pictory_configcheck 2022-03-31 15:47:10.288976466 +0200 | |
@@ -92,9 +92,11 @@ | |
changed = False | |
logger.info(f"Checking device '{device['id']}' ...") | |
+ io_sort = lambda e: current_offset(e) | |
+ | |
offset_calculated = 0 | |
for io_type in ["inp", "out", "mem"]: | |
- for idx_m, memory in device[io_type].items(): | |
+ for memory in sorted(device[io_type].values(), key=io_sort): | |
offset = current_offset(memory) | |
if offset > offset_calculated: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First download the patch to your RevPi:
Then apply the patch:
The output should look like this: