mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Replace const char array indexing with equivalent code in pindefs.c
This commit is contained in:
@@ -361,7 +361,7 @@ char *pins_to_strdup(const struct pindef_t * const pindef) {
|
||||
if(pindef->mask[index] & (1 << bit)) {
|
||||
if(*buf)
|
||||
*p++ = ',', *p++=' ';
|
||||
p += sprintf(p, "~%d" + !(pindef->inverse[index] & (1 << bit)), pin);
|
||||
p += sprintf(p, pindef->inverse[index] & (1 << bit)? "~%d": "%d", pin);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user