|
@@ -136,6 +136,7 @@ extern AC_Ele_struct_ReadReg AC_Ele_ReadReg_All;
|
|
|
extern META_DATA_S meta_data ;
|
|
extern META_DATA_S meta_data ;
|
|
|
extern information_t infomation;
|
|
extern information_t infomation;
|
|
|
|
|
|
|
|
|
|
+extern uint8_t upgreade_flag ;
|
|
|
|
|
|
|
|
#if SUPPORT_SELF_LOCK
|
|
#if SUPPORT_SELF_LOCK
|
|
|
extern uint8_t handle_k_1_status;
|
|
extern uint8_t handle_k_1_status;
|
|
@@ -492,7 +493,8 @@ eMBRegHoldingCB( UCHAR * pucRegBuffer, USHORT usAddress, USHORT usNRegs, eMBRegi
|
|
|
AT24CxxWrite(Eepr_AC_Sing_All_Over_SmaAddr,Eeprom_Wbuf,2);
|
|
AT24CxxWrite(Eepr_AC_Sing_All_Over_SmaAddr,Eeprom_Wbuf,2);
|
|
|
}else if(AC_Sing_Break_Upgrade == usAddress)
|
|
}else if(AC_Sing_Break_Upgrade == usAddress)
|
|
|
{
|
|
{
|
|
|
- break_2_boot_upgreade();
|
|
|
|
|
|
|
+ if(usRegHoldBuf[WiRegIndex] == 0XA5A5)
|
|
|
|
|
+ upgreade_flag = 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|