Skip to content

Instantly share code, notes, and snippets.

Last active March 31, 2022 13:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
--- /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"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:
Copy link

First download the patch to your RevPi:


Then apply the patch:

sudo patch /usr/bin/pictory_configcheck < 001-patch-pictory_configcheck.patch

The output should look like this:

patching file /usr/bin/pictory_configcheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment