mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Correct some bad parameter checking
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5197 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -572,7 +572,7 @@ static void ads7843e_worker(FAR void *arg)
|
||||
/* Check for pen up or down by reading the PENIRQ GPIO. */
|
||||
|
||||
pendown = config->pendown(config);
|
||||
dbg("pendown: %d\n", pendown); // REMOVE ME
|
||||
|
||||
/* Handle the change from pen down to pen up */
|
||||
|
||||
if (!pendown)
|
||||
@@ -643,7 +643,6 @@ dbg("pendown: %d\n", pendown); // REMOVE ME
|
||||
/* Exit, re-enabling ADS7843E interrupts */
|
||||
|
||||
errout:
|
||||
dbg("Exiting\n"); // REMOVE ME
|
||||
(void)ads7843e_sendcmd(priv, ADS7843_CMD_ENABPINIRQ);
|
||||
config->enable(config, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user