diff --git a/pi4j-spring-boot-starter-sample-app/src/main/java/com/pi4j/spring/boot/sample/app/controller/Pi4JController.java b/pi4j-spring-boot-starter-sample-app/src/main/java/com/pi4j/spring/boot/sample/app/controller/Pi4JController.java index 4fea663..177ceab 100644 --- a/pi4j-spring-boot-starter-sample-app/src/main/java/com/pi4j/spring/boot/sample/app/controller/Pi4JController.java +++ b/pi4j-spring-boot-starter-sample-app/src/main/java/com/pi4j/spring/boot/sample/app/controller/Pi4JController.java @@ -18,7 +18,7 @@ public class Pi4JController { public Pi4JController(@Autowired Context pi4j) { // LED example is based on https://www.pi4j.com/getting-started/minimal-example-application/ - pi4j.digitalOutput().create(PIN_LED); + led = pi4j.digitalOutput().create(PIN_LED); } @GetMapping("/led/{status}")