Subversion Repositories group.electronics

Rev

Rev 162 | Rev 166 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 162 Rev 164
Line 41... Line 41...
41
            }
41
            }
42
 
42
 
43
            if (this.commands != null && norm != chg) {
43
            if (this.commands != null && norm != chg) {
44
                foreach (Command cmd in this.commands) {
44
                foreach (Command cmd in this.commands) {
45
                    cmd.data = this.data;
45
                    cmd.data = this.data;
46
                    cmd.Send(this.value);
46
                    if (cmd.Send(this.value) == 0)
47
                    //Console.Write(this.GetType().ToString() + " : " + cmd.ToString());
-
 
48
                    Console.Write(cmd.ToString());
47
                        Console.Write(cmd.ToString());
49
                }
48
                }
50
            }
49
            }
51
        }
50
        }
52
    }
51
    }
53
 
52
 
Line 77... Line 76...
77
                this.value = (uint)(invert ? 0 : 2);
76
                this.value = (uint)(invert ? 0 : 2);
78
 
77
 
79
            if (this.commands != null &&  ((nrm0 != chg0) || (nrm1 != chg1))) {
78
            if (this.commands != null &&  ((nrm0 != chg0) || (nrm1 != chg1))) {
80
                foreach (Command cmd in this.commands) {
79
                foreach (Command cmd in this.commands) {
81
                    cmd.data = this.data;
80
                    cmd.data = this.data;
82
                    cmd.Send(this.value);
81
                    if (cmd.Send(this.value) == 0)
83
                    Console.Write(cmd.ToString());
82
                        Console.Write(cmd.ToString());
84
                }
83
                }
85
            }
84
            }
86
        }
85
        }
87
    }
86
    }
88
 
87
 
Line 121... Line 120...
121
                return;
120
                return;
122
 
121
 
123
            if (norm != chg) { // Send the update if needed
122
            if (norm != chg) { // Send the update if needed
124
                foreach (Command cmd in this.commands) {
123
                foreach (Command cmd in this.commands) {
125
                    cmd.data = this.data;
124
                    cmd.data = this.data;
126
                    cmd.Send(this.value);
125
                    if (cmd.Send(this.value) == 0)
127
                    Console.Write(cmd.ToString());
126
                        Console.Write(cmd.ToString());
128
                }
127
                }
129
            }
128
            }
130
        }
129
        }
131
 
130
 
132
    }
131
    }