Replace const char array indexing with equivalent code in pindefs.c
This commit is contained in:
parent
1da97f6825
commit
c21be27a7d
|
@ -361,7 +361,7 @@ char *pins_to_strdup(const struct pindef_t * const pindef) {
|
||||||
if(pindef->mask[index] & (1 << bit)) {
|
if(pindef->mask[index] & (1 << bit)) {
|
||||||
if(*buf)
|
if(*buf)
|
||||||
*p++ = ',', *p++=' ';
|
*p++ = ',', *p++=' ';
|
||||||
p += sprintf(p, "~%d" + !(pindef->inverse[index] & (1 << bit)), pin);
|
p += sprintf(p, pindef->inverse[index] & (1 << bit)? "~%d": "%d", pin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue