Skip to content

Commit 40eed70

Browse files
authored
updateConfig to Manager Class(Buttons)
moved updateConfig to Manager Class
1 parent 36028ff commit 40eed70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Arduino_MKRIoTCarrier_Qtouch.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ bool MKRIoTCarrier_Qtouch::onTouchChange(){
8282
}
8383
}
8484

85-
void MKRIoTCarrier_Qtouch::updateConfig(int newSens){
86-
TOUCH.setSensorsSensitivity(newSens);
87-
//TOUCH.setSernsorsHysteresis(newHyst);
88-
}
89-
9085
//Manager
9186
bool MKRIoTCarrier_Qtouch_Manager::begin(){
9287
return TOUCH.begin();
@@ -104,3 +99,8 @@ void MKRIoTCarrier_Qtouch_Manager::update(){
10499
t_state[4] = TOUCH.read(4);
105100
}
106101
}
102+
103+
void MKRIoTCarrier_Qtouch_Manager::updateConfig(int newSens){
104+
TOUCH.setSensorsSensitivity(newSens);
105+
//TOUCH.setSernsorsHysteresis(newHyst);
106+
}

0 commit comments

Comments
 (0)