|
@@ -36,7 +36,7 @@ typedef struct
|
|
uint16_t packetCrc; /* crc checksum in this packet */
|
|
uint16_t packetCrc; /* crc checksum in this packet */
|
|
uint8_t* packetData; /* pointer to the data of this packet */
|
|
uint8_t* packetData; /* pointer to the data of this packet */
|
|
uint16_t* packetSize; /* pointer to the length of this packet */
|
|
uint16_t* packetSize; /* pointer to the length of this packet */
|
|
- uint16_t* fileSize; /* pointer to the amount of bytes in this packet */
|
|
|
|
|
|
+ uint32_t* fileSize; /* pointer to the amount of bytes in this packet */
|
|
} shellmatta_ymodem_packet_t;
|
|
} shellmatta_ymodem_packet_t;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -60,7 +60,7 @@ typedef enum {
|
|
|
|
|
|
void shellmatta_ymodem_init( shellmatta_handle_t handle,
|
|
void shellmatta_ymodem_init( shellmatta_handle_t handle,
|
|
uint8_t* recvBuffer,
|
|
uint8_t* recvBuffer,
|
|
- uint16_t* fileSize,
|
|
|
|
|
|
+ uint32_t* fileSize,
|
|
uint16_t* packetSize,
|
|
uint16_t* packetSize,
|
|
shellmatta_ymodem_callbacks_t callbacks);
|
|
shellmatta_ymodem_callbacks_t callbacks);
|
|
|
|
|
|
@@ -87,4 +87,4 @@ void shellmatta_ymodem_check_packet( shellmatta_handle_t handle);
|
|
void shellmatta_ymodem_reset( shellmatta_handle_t handle,
|
|
void shellmatta_ymodem_reset( shellmatta_handle_t handle,
|
|
bool doCancel);
|
|
bool doCancel);
|
|
|
|
|
|
-#endif /* _SHELLMATTA_YMODEM_H_ */
|
|
|
|
|
|
+#endif /* _SHELLMATTA_YMODEM_H_ */
|