Merge pull request #808 from yegorich/fix-invalid-sscanf-arg-type

buspirate: fix invalidScanfArgType_int warning
This commit is contained in:
Jörg Wunsch 2022-01-07 21:40:25 +01:00 committed by GitHub
commit 366a368882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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