Touch: Simplify scanning.

This commit is contained in:
Jared Boone
2016-07-27 21:57:51 -07:00
parent 8a8e84d763
commit dd2097a447
2 changed files with 10 additions and 19 deletions

View File

@@ -38,7 +38,7 @@ using sample_t = uint16_t;
constexpr sample_t sample_max = 1023;
constexpr sample_t touch_threshold = sample_max * 0.5f;
constexpr sample_t touch_threshold = sample_max / 5;
struct Samples {
sample_t xp;