aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/bluenrg-x.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/bluenrg-x.cfg')
-rw-r--r--tcl/target/bluenrg-x.cfg6
1 files changed, 3 insertions, 3 deletions
diff --git a/tcl/target/bluenrg-x.cfg b/tcl/target/bluenrg-x.cfg
index a9d321e..ea94be9 100644
--- a/tcl/target/bluenrg-x.cfg
+++ b/tcl/target/bluenrg-x.cfg
@@ -54,9 +54,9 @@ $_TARGETNAME configure -event halted {
if {$_JTAG_IDCODE != 0x0201E041} {
# Stop watchdog during halt, if enabled. Only Bluenrg-1/2
set WDOG_VALUE [mrw 0x40700008]
- if [expr ($WDOG_VALUE & (1 << 1))] {
+ if [expr {$WDOG_VALUE & (1 << 1)}] {
set WDOG_VALUE_SET 1
- mww 0x40700008 [expr ($WDOG_VALUE & 0xFFFFFFFD)]
+ mww 0x40700008 [expr {$WDOG_VALUE & 0xFFFFFFFD}]
}
}
}
@@ -65,7 +65,7 @@ $_TARGETNAME configure -event resumed {
global WDOG_VALUE_SET
set _JTAG_IDCODE [mrw 0x40000004]
if {$_JTAG_IDCODE != 0x0201E041} {
- if [expr $WDOG_VALUE_SET] {
+ if {$WDOG_VALUE_SET} {
# Restore watchdog enable value after resume. Only Bluenrg-1/2
mww 0x40700008 $WDOG_VALUE
set WDOG_VALUE_SET 0