Skip to content

Commit

Permalink
Fixed typo: M5.TP.avaliable() -> M5.TP.available()
Browse files Browse the repository at this point in the history
Fixed typo: M5.TP.avaliable() -> M5.TP.available()
  • Loading branch information
Tinyu-Zhao authored Jul 16, 2023
2 parents 5e164e5 + 3ecfb37 commit b40e81e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/Basics/TOUCH/TOUCH.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ void setup() {
canvas.pushCanvas(0, 0, UPDATE_MODE_DU4);
}


void loop() {
if (M5.TP.avaliable()) {
if (M5.TP.available()) {
if (!M5.TP.isFingerUp()) {
M5.TP.update();
canvas.fillCanvas(0);
Expand Down
2 changes: 1 addition & 1 deletion src/utility/GT911.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ uint8_t calcChecksum(const uint8_t *buf, uint8_t len) {
return ccsum;
}

bool GT911::avaliable() {
bool GT911::available() {
if (gt911_irq_trigger == 1) {
gt911_irq_trigger = 0;
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/utility/GT911.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GT911 {
public:
GT911();
esp_err_t begin(uint8_t pin_sda, uint8_t pin_scl, uint8_t pin_int);
bool avaliable();
bool available();
void update();
void SetRotation(uint16_t rotate);
tp_finger_t readFinger(uint8_t num);
Expand Down

0 comments on commit b40e81e

Please sign in to comment.