Subversion Repositories HomeAutomation

Rev

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

Rev 1013 Rev 1020
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
   
84
}
89
}
85
 
90
 
86
function programNode(hardwareId, hexData, bios)
91
function programNode(hardwareId, hexData, bios)
87
{
92
{
88
    ProgrammingClientId = ClientId;
93
    ProgrammingClientId = ClientId;
Line 126... Line 131...
126
 
131
 
127
        var hexObj = new IntelHex(hexLines);
132
        var hexObj = new IntelHex(hexLines);
128
        if (hexObj.isValid()) {
133
        if (hexObj.isValid()) {
129
            //print("hexfile is valid");
134
            //print("hexfile is valid");
130
            //for (var i = 0; i < 16; i++) { print(hexObj.getByte(i)+" "); }
135
            //for (var i = 0; i < 16; i++) { print(hexObj.getByte(i)+" "); }
-
 
136
            //print("len: "+hexObj.getLength()+" laddr: "+hexObj.getAddrLower()+" uaddr: "+hexObj.getAddrUpper()+"\n");
131
            node.startProgramming(hexObj, programNodeCallback, bios);
137
            node.startProgramming(hexObj, programNodeCallback, bios);
132
        }
138
        }
133
    }
139
    }
134
    else
140
    else
135
    {
141
    {