sedrubal / brother_printer_fwupd

Script to update the firmware of some Brother printers
https://pypi.org/project/brother_printer_fwupd/
GNU General Public License v3.0
30 stars 5 forks source link

Use port 9100 as fallback default for firmware upload #21

Closed dlenski closed 4 months ago

dlenski commented 4 months ago

In the case when the printer was not autodiscovered (e.g. IP address specified explicitly with -p 192.168.1.234), the parameter port will be None, and the intended default behavior will depend on the local system database (e.g. /etc/protocols) having an entry for pdl-datastream.

Add port 9100 as the intended fallback port when this is missing.

See https://github.com/sedrubal/brother_printer_fwupd/commit/831d9858#r141422105

sedrubal commented 4 months ago

Thanks!