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
This commit is contained in:
parent
2f424b7eb7
commit
c3993d3188
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue