PYJ 5 vuotta sitten
vanhempi
commit
81dea7bec4
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 3 3
      Src/MBIC_BootLoader.c
  2. 1 1
      Src/uart.c

+ 3 - 3
Src/MBIC_BootLoader.c

@@ -13,8 +13,8 @@ extern uint32_t crc32(uint32_t crc, const void *buf, size_t size);
13 13
 
14 14
 void MBIC_FirmwareUpdateStart(uint8_t* data){
15 15
     uint8_t ret = 0,crccheck = 0;
16
-    crccheck = crc32(&data[bluecell_type],data[bluecell_length],data[data[bluecell_length] + 1]);
17
-    if(crccheck == NO_ERROR){
16
+   // crccheck = crc32(&data[bluecell_type],data[bluecell_length],data[data[bluecell_length] + 1]);
17
+ /*   if(crccheck == NO_ERROR){
18 18
         AckData_Buf[bluecell_type] = FirmwareUpdataAck;
19 19
         if(data[bluecell_type] == 0xDD || data[bluecell_type] == 0xEE)//Start Firmware byte
20 20
             ret = Flash_write(&data[0]);
@@ -31,7 +31,7 @@ void MBIC_FirmwareUpdateStart(uint8_t* data){
31 31
         Uart1_Data_Send(&AckData_Buf[bluecell_stx],AckData_Buf[bluecell_length] + 3);
32 32
     }
33 33
     if(data[bluecell_type] == 0xEE)
34
-        printf("update Complete \n");
34
+        printf("update Complete \n");*/
35 35
 }
36 36
 
37 37
 

+ 1 - 1
Src/uart.c

@@ -8,7 +8,7 @@
8 8
 #include <uart.h>
9 9
 #include "main.h"
10 10
 #include "string.h"
11
-
11
+#include "MBIC_BootLoader.h"
12 12
 UARTQUEUE TerminalQueue;
13 13
 UARTQUEUE WifiQueue;
14 14
 extern volatile uint32_t FirmwareTimerCnt;