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:
patacongo
2012-09-27 03:13:50 +00:00
parent 41396d5960
commit c48a617cd2
6 changed files with 14 additions and 9 deletions
+1 -2
View File
@@ -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);
}