Use stable udev symlink for Datamax device instead of /dev/usb/lp0
deploy / deploy (push) Successful in 8s

This commit is contained in:
randy committed 2026-09-12 16:51:56 +02:00
1 parent f723503220
commit f1304206d7
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ if !File.exist?('config.json') || !File.readable?('config.json')
raise RuntimeException, 'Could not read config.json'
end
PRINTER_DEVICE = '/dev/usb/lp0'
PRINTER_DEVICE = '/dev/usb/lp_datamax' # stable udev symlink, see /etc/udev/rules.d/99-datamax.rules
PRINTER_DPI = 203 # DatamaxONeil E4204B Mark III native head resolution
PRINTER_DARKNESS = 8 # lower than factory default to stop thermal dot-gain from fusing barcode bars
TEST_LABEL_PDF = File.join(File.dirname(__FILE__), 'test-label.pdf')