Subversion Repositories group.electronics

Rev

Rev 189 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 189 Rev 190
Line 219... Line 219...
219
            else if ((uint)nrm1 == 1)
219
            else if ((uint)nrm1 == 1)
220
                this.value = (UInt64)(invert ? 0 : 2);
220
                this.value = (UInt64)(invert ? 0 : 2);
221
 
221
 
222
            if (this.commands != null &&  ((nrm0 != chg0) || (nrm1 != chg1))) {
222
            if (this.commands != null &&  ((nrm0 != chg0) || (nrm1 != chg1))) {
223
                foreach (Command cmd in this.commands) {
223
                foreach (Command cmd in this.commands) {
-
 
224
                    if (cmd == null) {
-
 
225
                        Console.WriteLine("Null data");
-
 
226
                    } else {
224
                    cmd.data = this.data;
227
                        cmd.data = this.data;
225
                    if (cmd.Send(this.value) == 0)
228
                        if (cmd.Send(this.value) == 0)
226
                        Console.Write(cmd.ToString());
229
                            Console.Write(cmd.ToString());
-
 
230
                    }
227
                }
231
                }
228
            }
232
            }
229
        }
233
        }
230
    }
234
    }
231
 
235