Doodle3D / doodle3d-firmware

The API of the Doodle3D WiFi box. This can for example talk to print3d, save settings, update the firmware etc.
www.doodle3d.com
GNU General Public License v2.0
13 stars 9 forks source link

Reuse hasControl logic #75

Closed peteruithoven closed 7 years ago

peteruithoven commented 7 years ago

printer/fetch performs the same hasControl check as printer/print. This info is also returned from info/access / info/status. Maybe we can reuse accessManager.hasControl in all places, the only downside seems that accessManager.setController(request.remoteAddress) would also need to be executed when the current remoteAddress is already the controller.