logger.debug("{} found config for DigitalSensor", LoggerConstants.TFINIT);
setPullUpResistorEnabled(tfConfig.isPullUpResistorEnabled());
logger.debug("{} pull-up resistor state is {}", LoggerConstants.TFINIT,
isPullUpResistorEnabled());
}
MBrickletIO16 bricklet = getMbrick();
if (bricklet == null) {
logger.error("{} No bricklet found for DigitalSensor: {} ", LoggerConstants.TFINIT, subId);
} else {
BrickletIO16 brickletIO16 = bricklet.getTinkerforgeDevice();
try {
logger.debug("{} setting InterruptListener for DigitalSensor: {} ", LoggerConstants.TFINIT,
subId);
interruptListener = new InterruptListener();
brickletIO16.addInterruptListener(interruptListener);