diff options
author | Tarek BOCHKATI <tarek.bouchkati@gmail.com> | 2021-09-14 21:26:47 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-09-25 13:37:28 +0000 |
commit | c3993d3188da5976a64f47d4cbf4d7e5b63f0c8d (patch) | |
tree | 85c2dd87f3dc1e655d73295c47295b6ef399c53b /tcl | |
parent | 2f424b7eb776b3d32f2b58a3ffd91ff1d5657404 (diff) | |
download | riscv-openocd-c3993d3188da5976a64f47d4cbf4d7e5b63f0c8d.zip riscv-openocd-c3993d3188da5976a64f47d4cbf4d7e5b63f0c8d.tar.gz riscv-openocd-c3993d3188da5976a64f47d4cbf4d7e5b63f0c8d.tar.bz2 |
tcl/stm32wlx.cfg: comply with new jimtcl expr syntax
Change-Id: I2e9fd528817b14396c7643801aeea5c8dde668e0
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6557
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
Diffstat (limited to 'tcl')
-rw-r--r-- | tcl/target/stm32wlx.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/target/stm32wlx.cfg b/tcl/target/stm32wlx.cfg index edb3fb3..fafe9bc 100644 --- a/tcl/target/stm32wlx.cfg +++ b/tcl/target/stm32wlx.cfg @@ -151,7 +151,7 @@ proc stm32wlx_get_chipname {} { if {$sep == -1} { return $t } - return [string range $t 0 [expr $sep - 1]] + return [string range $t 0 [expr {$sep - 1}]] } # like mrw, but with target selection |