Skip to content

Commit

Permalink
Error with RAM display
Browse files Browse the repository at this point in the history
The OLED display for RAM was erroring out.  This was due to the
incorrect mechanism for recovering data.  The data used to be an
array/list, it is now a dictionary.  Minor modification.
  • Loading branch information
JeffCurless committed Aug 14, 2023
1 parent 6b26120 commit 90488d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions argononed.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ def display_loop(readq):
prevscreen = curscreen
curscreen = screenenabled[screenid]

print( curscreen )
if screenjogtime == 0:
# Resets jogflag (if switched manually)
screenjogflag = 0
Expand Down Expand Up @@ -390,9 +389,9 @@ def display_loop(readq):
try:
oled_loadbg("bgram")
tmpraminfo = argonsysinfo_getram()
oled_writetextaligned(tmpraminfo[0], stdleftoffset, 8, oledscreenwidth-stdleftoffset, 1, fontwdReg)
oled_writetextaligned(tmpraminfo["percent"]+"%", stdleftoffset, 8, oledscreenwidth-stdleftoffset, 1, fontwdReg)
oled_writetextaligned("of", stdleftoffset, 24, oledscreenwidth-stdleftoffset, 1, fontwdReg)
oled_writetextaligned(tmpraminfo[1], stdleftoffset, 40, oledscreenwidth-stdleftoffset, 1, fontwdReg)
oled_writetextaligned(tmpraminfo["gb"]+"GB", stdleftoffset, 40, oledscreenwidth-stdleftoffset, 1, fontwdReg)
needsUpdate = True
except:
logError( "Error processing information for RAM display")
Expand Down

0 comments on commit 90488d4

Please sign in to comment.