nornagon / saxi

Tools & library for driving the AxiDraw pen plotter
GNU Affero General Public License v3.0
472 stars 55 forks source link

Fix firmware version - call port.open() before querying it #176

Closed alexrudd2 closed 1 year ago

alexrudd2 commented 1 year ago

Closes #124 ... mostly.

The CLI will still throw an error (throw new Error("TODO")), but it will at least print the firmware version before doing so.

❯ npx . --firmware-version
EBBv13_and_above EB Firmware Version 2.8.1
/Users/a.ruddick/Documents/github/saxi/dist/server/ebb.js:73
            throw new Error("TODO");
andypiper commented 1 year ago

Working as described above, for me. 👍🏻