mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 10:35:52 +08:00
Made sendMaterialProfiles protected
CL-541
This commit is contained in:
parent
89004b8df5
commit
37461a7934
@ -138,7 +138,7 @@ class LegacyUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||||||
self._authentication_timer.stop()
|
self._authentication_timer.stop()
|
||||||
|
|
||||||
## Send all material profiles to the printer.
|
## Send all material profiles to the printer.
|
||||||
def sendMaterialProfiles(self):
|
def _sendMaterialProfiles(self):
|
||||||
Logger.log("i", "Sending material profiles to printer")
|
Logger.log("i", "Sending material profiles to printer")
|
||||||
|
|
||||||
# TODO: Might want to move this to a job...
|
# TODO: Might want to move this to a job...
|
||||||
@ -410,7 +410,7 @@ class LegacyUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||||||
elif status_code == 200:
|
elif status_code == 200:
|
||||||
self.setAuthenticationState(AuthState.Authenticated)
|
self.setAuthenticationState(AuthState.Authenticated)
|
||||||
# Now we know for sure that we are authenticated, send the material profiles to the machine.
|
# Now we know for sure that we are authenticated, send the material profiles to the machine.
|
||||||
self.sendMaterialProfiles()
|
self._sendMaterialProfiles()
|
||||||
|
|
||||||
def _checkAuthentication(self):
|
def _checkAuthentication(self):
|
||||||
Logger.log("d", "Checking if authentication is correct for id %s and key %s", self._authentication_id, self._getSafeAuthKey())
|
Logger.log("d", "Checking if authentication is correct for id %s and key %s", self._authentication_id, self._getSafeAuthKey())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user