Skip to content

Commit bb73e66

Browse files
committed
Cleanup in remote TCL file
1 parent 055ea8f commit bb73e66

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

remote

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ proc sendit { } {
3737
$csum [expr $csum ^ 0xff]" ] ;
3838
flush $irfd;
3939
}
40+
4041
proc send_state { } {
4142
global buttonstate sender_running
4243
if { $buttonstate } {
@@ -62,18 +63,18 @@ proc buttondown { button id bg } {
6263
$button configure -bg $bg
6364
set buttonstate [expr $buttonstate | $id]
6465
if { ! $sender_running } {
65-
set sender_running 1
66+
set sender_running 1
6667
send_state
6768
} else {
68-
sendit
69+
sendit
6970
}
7071
}
7172

7273
proc press_button_3 { button id bg abg} {
7374
if { [string equal [$button cget -relief ] "sunken" ]} {
74-
buttonup $button $id $bg
75+
buttonup $button $id $bg
7576
} else {
76-
buttondown $button $id $abg
77+
buttondown $button $id $abg
7778
}
7879
}
7980

@@ -117,11 +118,11 @@ static unsigned char sound_bits[] = {
117118
}
118119

119120
image create bitmap imgup -maskdata $arrupbmp -data $arrupbmp \
120-
-foreground "#00e000"
121+
-foreground "#00e000"
121122
image create bitmap imgdn -maskdata $arrdnbmp -data $arrdnbmp \
122-
-foreground "#00e000"
123+
-foreground "#00e000"
123124
image create bitmap imgsound -maskdata $soundbmp -data $soundbmp \
124-
-foreground white
125+
-foreground white
125126

126127
. configure -bg black;
127128
frame .msgrow -bg black
@@ -180,7 +181,7 @@ static unsigned char sound_bits[] = {
180181

181182

182183
#---------------------------------
183-
# HAUPTPROGRAMM
184+
# MAIN PROGRAM
184185
#---------------------------------
185186

186187
global irfd;

0 commit comments

Comments
 (0)