Subversion Repositories HomeAutomation

Rev

Rev 1020 | Rev 1028 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1020 Rev 1022
Line 79... Line 79...
79
var ProgrammingClientId = null;
79
var ProgrammingClientId = null;
80
 
80
 
81
function programNodeCallback(status, event, text)
81
function programNodeCallback(status, event, text)
82
{
82
{
83
    printTo(ProgrammingClientId, event + ": " + text + "\n");
83
    printTo(ProgrammingClientId, event + ": " + text + "\n");
84
}
-
 
85
 
-
 
86
function testCRC()
-
 
87
{
-
 
88
   
-
 
89
}
84
}
90
 
85
 
91
function programNode(hardwareId, hexData, bios)
86
function programNode(hardwareId, hexData, bios)
92
{
87
{
93
    ProgrammingClientId = ClientId;
88
    ProgrammingClientId = ClientId;
Line 95... Line 90...
95
    if (hardwareId.length > 2)
90
    if (hardwareId.length > 2)
96
    {
91
    {
97
        if (hardwareId.substr(0,2)=="0x")
92
        if (hardwareId.substr(0,2)=="0x")
98
        {
93
        {
99
            hardwareId = hex2uint(hardwareId.substring(2,hardwareId.length));
94
            hardwareId = hex2uint(hardwareId.substring(2,hardwareId.length));
100
            //hardwareId += hex2uint(hardwareId.substring(0,hardwareId.length-1));
-
 
101
        }
95
        }
102
    }
96
    }
103
   
97
   
104
    var node = CanNodes[hardwareId];
98
    var node = CanNodes[hardwareId];
105
 
99