if (bricklet == null) {
logger.error("{} No bricklet found for MultiTouchDevice: {}:{} ", LoggerConstants.TFINIT,
getUid(), subId);
} else {
try {
BrickletMultiTouch brickletMultiTouch = bricklet.getTinkerforgeDevice();
if (getDisableElectrode() != null && getDisableElectrode()) {
logger.debug("{} MultiTouchDevice uid {} subid {} disabling electrode {}",
LoggerConstants.TFINIT, getUid(), getSubId(), getPin());
getEnabledA().set(false);
int electrodeConfig = brickletMultiTouch.getElectrodeConfig();
electrodeConfig &= ~mask;
brickletMultiTouch.setElectrodeConfig(electrodeConfig);
return;
}
setSensorValue(HighLowValue.UNDEF);
touchListener = new TouchListener();
brickletMultiTouch.addTouchStateListener(touchListener);
fetchSensorValue();
} catch (TimeoutException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
} catch (NotConnectedException e) {