Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 223 → Rev 224

/DUBwise/trunk/shared/src/MKCommunicator.java
458,9 → 458,13
 
 
public boolean bootloader_intension_flash=false;
 
public boolean bootloader_finish_ok=false;
 
public void jump_bootloader()
{
 
bootloader_finish_ok=false;
msg_pos=0;
bootloader_stage= BOOTLOADER_STAGE_NONE;
flash_msgs=new String[100];
770,15 → 774,15
int avr_sig=reader.read();
 
while (avr_sig==63)
avr_sig=reader.read();
//while (avr_sig==63)
// avr_sig=reader.read();
 
flash_msgs[msg_pos++]="got avr sig " + avr_sig;
 
int avrsig_suff=reader.read();
if (avrsig_suff!=0)
throw new Exception("val after avrsig is" +avrsig_suff +"should b 0");
 
if (reader.read()!=0)
throw new Exception("val after avrsig isnt 0");
 
if ((avr_sig!=0x74)&&(avr_sig!=224)&&(avr_sig!=120))
{
sigfail=true;
815,7 → 819,9
flash_msgs[msg_pos++]="BUFF Size:" + send_buff_size;
// if (send_buff_size>128)
// send_buff_size=128;
if (bootloader_intension_flash)
 
// if (!bootloader_intension
if (bootloader_intension_flash)
{
byte[] flash_buff =new byte[send_buff_size]; ///!!
1017,7 → 1023,7
}
flash_msgs[msg_pos++]="Exit BL done" ;
 
 
bootloader_finish_ok=true;
}
catch (Exception e) {