LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.75k stars 1.14k forks source link

xhc-hb04: Close file after use #2855

Closed havardAasen closed 6 months ago

havardAasen commented 6 months ago

Let the IniFile class take ownership of the configuration file, the file will automatically close when the object goes out of scope.