Skip to content

Commit

Permalink
Whoops, wrong comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 26, 2014
1 parent b5afb5b commit 12109a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1pass.c
Expand Up @@ -113,7 +113,7 @@ static int openPowermate(const char *fname)

static void deinitPowermate(void)
{
if (powermate_fd == -1)
if (powermate_fd != -1)
{
setPowermateLED(0);
close(powermate_fd);
Expand Down

0 comments on commit 12109a8

Please sign in to comment.