diff --git a/photon-core/src/main/java/org/photonvision/vision/processes/VisionModuleChangeSubscriber.java b/photon-core/src/main/java/org/photonvision/vision/processes/VisionModuleChangeSubscriber.java index 2e0310569e..73a8774906 100644 --- a/photon-core/src/main/java/org/photonvision/vision/processes/VisionModuleChangeSubscriber.java +++ b/photon-core/src/main/java/org/photonvision/vision/processes/VisionModuleChangeSubscriber.java @@ -227,7 +227,7 @@ public void onDataChangeEvent(DataChangeEvent event) { propField.setBoolean(currentSettings, (Boolean) newPropValue); } } else { - propField.set(newPropValue, newPropValue); + propField.set(currentSettings, newPropValue); } logger.trace("Set prop " + propName + " to value " + newPropValue); } catch (NoSuchFieldException | IllegalAccessException e) { @@ -237,8 +237,9 @@ public void onDataChangeEvent(DataChangeEvent event) { + " with value " + newPropValue + " on " - + currentSettings, - e); + + currentSettings + + " | " + + e.getClass().getSimpleName()); } catch (Exception e) { logger.error("Unknown exception when setting PSC prop!", e); }