Merge pull request #808 from yegorich/fix-invalid-sscanf-arg-type
buspirate: fix invalidScanfArgType_int warning
This commit is contained in:
commit
366a368882
|
@ -857,7 +857,8 @@ static int buspirate_cmd_ascii(struct programmer_t *pgm,
|
|||
{
|
||||
char buf[25];
|
||||
char *rcvd;
|
||||
int spi_write, spi_read, i = 0;
|
||||
int i = 0;
|
||||
unsigned int spi_write, spi_read;
|
||||
|
||||
snprintf(buf, sizeof(buf), "0x%02x 0x%02x 0x%02x 0x%02x\n",
|
||||
cmd[0], cmd[1], cmd[2], cmd[3]);
|
||||
|
|
Loading…
Reference in New Issue