Subversion Repositories HomeAutomation

Rev

Rev 259 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 259 Rev 261
Line 165... Line 165...
165
        bios_state = BIOS_NOAPP;
165
        bios_state = BIOS_NOAPP;
166
    } else {
166
    } else {
167
        // Application exists
167
        // Application exists
168
        //send CAN_NMT_BIOS_START(BIOS_VERSION, 1)
168
        //send CAN_NMT_BIOS_START(BIOS_VERSION, 1)
169
        tx_msg.Data.bytes[2] = 1;
169
        tx_msg.Data.bytes[2] = 1;
170
        //for now, set state to BIOS_NOAPP to be able to reprogram application
-
 
171
        bios_state = BIOS_NOAPP;
170
        bios_state = BIOS_APP;
172
    }
171
    }
173
   
172
   
174
    while (Can_Send(&tx_msg) != CAN_OK);
173
    while (Can_Send(&tx_msg) != CAN_OK);
175
 
174
 
176
    tx_msg.DataLength = 2;
175
    tx_msg.DataLength = 2;