Permalink
Browse files

Toggle all of the GPIOs at once

This will be useful for future revisions where I'll add LED indicator or
the like.
  • Loading branch information...
1 parent 874b53c commit b91586605c3cd1014b830c6163fd5b702de45bb5 @Beirdo committed May 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hdpvr-power.c
View
@@ -92,7 +92,7 @@ struct ftdi_context *open_ftdi_usb(char *serial)
void hdpvr_power(struct ftdi_context *ftdi, int on)
{
printf("Turning HDPVR %s\n", (on ? "on" : "off"));
- ftdi_set_bitmode(ftdi, (on ? 0x10 : 0x11), BITMODE_CBUS);
+ ftdi_set_bitmode(ftdi, (on ? 0xF0 : 0xFF), BITMODE_CBUS);
}
int main(int argc, char **argv)

0 comments on commit b915866

Please sign in to comment.