diff --git a/acs/hd/nladmin-system/src/main/java/org/nl/start/auto/run/NDCSocketConnectionAutoRun.java b/acs/hd/nladmin-system/src/main/java/org/nl/start/auto/run/NDCSocketConnectionAutoRun.java index 3c214dd..f7f6b28 100644 --- a/acs/hd/nladmin-system/src/main/java/org/nl/start/auto/run/NDCSocketConnectionAutoRun.java +++ b/acs/hd/nladmin-system/src/main/java/org/nl/start/auto/run/NDCSocketConnectionAutoRun.java @@ -403,7 +403,7 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable { String nextPointCode = inst.getNext_point_code(); Device nextDevice = deviceAppService.findDeviceByCode(nextPointCode); if (nextDevice.getDeviceDriver() instanceof StandardInspectSite2DeviceDriver){ - standardInspectSite2DeviceDriver = (StandardInspectSite2DeviceDriver) device.getDeviceDriver(); + standardInspectSite2DeviceDriver = (StandardInspectSite2DeviceDriver) nextDevice.getDeviceDriver(); standardInspectSite2DeviceDriver.writing(2); } data = AgvService.sendAgvOneModeInst(phase, index, 0);