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

drivers/jtdev_bus_pirate: Fix GCC 7 misleading indent warning
This commit is contained in:
Daniel Beer 2018-02-10 11:46:00 +13:00 committed by GitHub
commit d49fad945e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}