existing FW file check to avoid redundant transmit

+ refactro dupliacte code
This commit is contained in:
2024-02-08 02:44:26 +01:00
parent 0ab07d6572
commit 19bcaaf18c
5 changed files with 121 additions and 51 deletions

View File

@@ -3,7 +3,7 @@
#include "stdbool.h"
#include "stdint.h"
#include "pb_common.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -60,6 +60,9 @@ uint8_t UsbDataPacket_head_sum(const UsbDataPacket* p);
*/
bool UsbDataPacket_head_check(const UsbDataPacket* p);
bool UsbDataPacketSendMessage(uint32_t type , UsbDataPacket * buffer ,const pb_msgdesc_t * fields ,const void* msg);
/**
* @brief This function starts the USB data handler.
*