File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ proc sendit { } {
3737 $csum [expr $csum ^ 0xff]" ] ;
3838 flush $irfd ;
3939}
40+
4041proc 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
7273proc press_button_3 { button id bg abg} {
7374 if { [string equal [$button cget -r elief ] " 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
186187global irfd;
You can’t perform that action at this time.
0 commit comments