mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-11-20 01:36:09 -05:00
Remove redundant check
This commit is contained in:
parent
3438bef4fb
commit
b116be8644
@ -64,7 +64,6 @@ void touch_update(){
|
|||||||
|
|
||||||
//Serial.printf(" %d,%d", x, y);
|
//Serial.printf(" %d,%d", x, y);
|
||||||
//Serial.println();
|
//Serial.println();
|
||||||
if (z >= Z_THRESHOLD) {
|
|
||||||
msraw = now; // good read completed, set wait
|
msraw = now; // good read completed, set wait
|
||||||
switch (rotation) {
|
switch (rotation) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -84,7 +83,6 @@ void touch_update(){
|
|||||||
yraw = 4095 - y;
|
yraw = 4095 - y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void initTouch(){
|
void initTouch(){
|
||||||
pinMode(CS_PIN, OUTPUT);
|
pinMode(CS_PIN, OUTPUT);
|
||||||
|
Loading…
Reference in New Issue
Block a user