mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
canbootloader:Ensure common crc is set valid after autobaud
This commit is contained in:
committed by
Daniel Agar
parent
58e5c8fbca
commit
d426dd771f
@@ -1097,7 +1097,6 @@ __EXPORT int main(int argc, char *argv[])
|
||||
board_indicate(reset);
|
||||
|
||||
/* Was this boot a result of the Application being told it has a FW update ? */
|
||||
|
||||
bootloader.app_bl_request = (OK == bootloader_app_shared_read(&common, App)) &&
|
||||
common.bus_speed && common.node_id;
|
||||
|
||||
@@ -1187,6 +1186,12 @@ __EXPORT int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
can_init(can_freq2speed(common.bus_speed), CAN_Mode_Normal);
|
||||
/*
|
||||
* Mark CRC to say this is from
|
||||
* auto baud and Node Allocation
|
||||
*/
|
||||
common.crc.valid = true;
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user