mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
arch/arm/src/sam34: Fix some compile warnings that I introduced with a possibly overzealous recent change.
This commit is contained in:
@@ -378,6 +378,12 @@ static ssize_t ft5x06_sample(FAR struct ft5x06_dev_s *priv, FAR char *buffer,
|
||||
ntouches = maxtouches;
|
||||
}
|
||||
|
||||
if (ntouches < 1)
|
||||
{
|
||||
priv->valid = false;
|
||||
return 0; /* No touches read. */
|
||||
}
|
||||
|
||||
/* User data buffer points (sink) */
|
||||
|
||||
sample = (FAR struct touch_sample_s *)buffer;
|
||||
|
||||
Reference in New Issue
Block a user