Skip USB port validation when TCP/IP printing

This commit is contained in:
John Lewin 2017-02-24 11:32:57 -08:00
parent 825295c4b4
commit 410d526345
2 changed files with 9 additions and 7 deletions

View file

@ -999,7 +999,8 @@ namespace MatterHackers.MatterControl.PrinterCommunication
if (ActivePrinter != null)
{
// Start the process of requesting permission and exit if permission is not currently granted
if (!FrostedSerialPort.EnsureDeviceAccess())
if (!ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.enable_network_printing)
&& !FrostedSerialPort.EnsureDeviceAccess())
{
CommunicationState = CommunicationStates.FailedToConnect;
return;