diff options
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/mflash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/mflash.c b/src/flash/mflash.c index 123d61ce..5c8ca8c1 100644 --- a/src/flash/mflash.c +++ b/src/flash/mflash.c @@ -1345,7 +1345,8 @@ COMMAND_HANDLER(mg_bank_cmd) char *str; mflash_bank->rst_pin.num = strtoul(CMD_ARGV[2], &str, 0); if (*str) - mflash_bank->rst_pin.port[0] = (uint16_t)tolower(str[0]); + mflash_bank->rst_pin.port[0] = (uint16_t) + tolower((unsigned)str[0]); mflash_bank->target = target; |