Permalink
Browse files

Merge pull request #45 from bradfa/bus-pirate-misleading-indent

drivers/jtdev_bus_pirate: Fix GCC 7 misleading indent warning
  • Loading branch information...
dlbeer committed Feb 9, 2018
2 parents 973f0df + 1ca3919 commit d49fad945e485128e7feaf0fe09ee9d7eca9b51b
Showing with 4 additions and 4 deletions.
  1. +4 −4 drivers/jtdev_bus_pirate.c
@@ -182,11 +182,11 @@ static int jtbp_open(struct jtdev *p, const char *device)
static void jtbp_close(struct jtdev *p)
{
char out_buff;
char out_buff;
out_buff = 0x0f;
// Don't care if this fails, user can just power cycle the bus pirate
if(write(p->port, &out_buff, 1));
out_buff = 0x0f;
// Don't care if this fails, user can just power cycle the bus pirate
if(write(p->port, &out_buff, 1));
close(p->port);
}

0 comments on commit d49fad9

Please sign in to comment.