Reset with on-board button push
Hi,
I would like to make the board reset when on-board button pushed
I'm running the following code and it does not reset the board (a blinking LED keeps blinking), am I missing anything?
private Switch switchModule;
private Debug debugController;
try {
switchModule = mwBoard.getModule(Switch.class);
debugController = mwBoard.getModule(Debug.class);
} catch (UnsupportedModuleException ignored) {
}
switchModule.routeData().fromSensor().monitor(new DataSignal.ActivityHandler() {
@Override
public void onSignalActive(Map<String, DataProcessor> processors, DataSignal.DataToken token) {
debugController.resetAfterGarbageCollect();
}
});
This discussion has been closed.
Comments