Skip to content

Commit 015d202

Browse files
committed
glcanon: fix foam INI value lookup
Previously searching for "[DISPLAY]" instead of "DISPLAY" would return "None" and re-set the default value instead of the INI file's value.
1 parent 8c9639a commit 015d202

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/python/rs274/glcanon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,8 @@ def __init__(self, s=None, lp=None, g=None):
553553
self.dro_mm = temp
554554
self.dro_in = temp
555555

556-
self.foam_w_height = float(self.inifile.find("[DISPLAY]", "FOAM_W") or 1.5)
557-
self.foam_z_height = float(self.inifile.find("[DISPLAY]", "FOAM_Z") or 0)
556+
self.foam_w_height = float(self.inifile.find("DISPLAY", "FOAM_W") or 1.5)
557+
self.foam_z_height = float(self.inifile.find("DISPLAY", "FOAM_Z") or 0)
558558

559559
size = (self.inifile.find("DISPLAY", "CONE_BASESIZE") or None)
560560
if size is not None:

0 commit comments

Comments
 (0)