X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fstm32x.c;h=cc69dd161848cd162ece3e4b4bb600bd83217bf7;hp=431d3b02c29d6b9dd985e15558360b7b7e84daf9;hb=aea6815462d3302f7f8b6576f59320d5f5985642;hpb=0e2c2fe1d1eec5482078147d551215a58604cc3a diff --git a/src/flash/stm32x.c b/src/flash/stm32x.c index 431d3b02c2..cc69dd1618 100644 --- a/src/flash/stm32x.c +++ b/src/flash/stm32x.c @@ -1121,29 +1121,29 @@ static int stm32x_handle_options_write_command(struct command_context_s *cmd_ctx if (strcmp(args[1], "SWWDG") == 0) { - optionbyte |= (1<<0); + optionbyte |= (1 << 0); } else { - optionbyte &= ~(1<<0); + optionbyte &= ~(1 << 0); } if (strcmp(args[2], "NORSTSTNDBY") == 0) { - optionbyte |= (1<<1); + optionbyte |= (1 << 1); } else { - optionbyte &= ~(1<<1); + optionbyte &= ~(1 << 1); } if (strcmp(args[3], "NORSTSTOP") == 0) { - optionbyte |= (1<<2); + optionbyte |= (1 << 2); } else { - optionbyte &= ~(1<<2); + optionbyte &= ~(1 << 2); } if (stm32x_erase_options(bank) != ERROR_OK)