macdylan / sm2uploader

A command-line tool for send the gcode file to Snapmaker Printers via WiFi connection.
MIT License
44 stars 4 forks source link

Fix broadcast address calculation #12

Closed lestrrat closed 10 months ago

lestrrat commented 10 months ago

Calculate the broadcast address by converting the v4 address to a uint32 first, and the OR'ing it with the inverted netmask before converting it back into octets stored in net.IP

fixes #11