adafruit / Adafruit_TouchScreen

Arduino library for 4-wire resistive touchscreens
http://www.adafruit.com/index.php?main_page=product_info&cPath=35&products_id=333
Other
272 stars 212 forks source link

Code comment #33

Open rafaelcorsi opened 3 years ago

rafaelcorsi commented 3 years ago

https://github.com/adafruit/Adafruit_TouchScreen/blob/4f845058265afb23c6f29967130d6486920ff5d7/TouchScreen.cpp#L38

should be:

as the function compares two points:

bool TSPoint::operator==(TSPoint p1) {
  return ((p1.x == x) && (p1.y == y) && (p1.z == z));
}
ladyada commented 3 years ago

well i mean, it does both lol you can submit a PR to change the comment if ya like!

jadonmmiller commented 3 years ago

I just fixed this in PR #34.