Compare commits
2 Commits
9fcdfaf618
...
ebaf682151
| Author | SHA1 | Date | |
|---|---|---|---|
| ebaf682151 | |||
| 9ee21ed8a8 |
@@ -268,7 +268,7 @@ Ymodem::Code Ymodem::receivePacket()
|
||||
BOOST_LOG_TRIVIAL(debug) << "RX = " << int(rxBuffer[0]);
|
||||
if(rxBuffer[0] == CodeSoh)
|
||||
{
|
||||
uint32_t len = read(&(rxBuffer[1]), YMODEM_PACKET_SIZE + YMODEM_PACKET_OVERHEAD - 1);
|
||||
int32_t len = read(&(rxBuffer[1]), YMODEM_PACKET_SIZE + YMODEM_PACKET_OVERHEAD - 1);
|
||||
|
||||
BOOST_LOG_TRIVIAL(debug) << "Len = " << len << " Start = " << rxBuffer[1];
|
||||
|
||||
@@ -286,7 +286,7 @@ Ymodem::Code Ymodem::receivePacket()
|
||||
}
|
||||
else if(rxBuffer[0] == CodeStx)
|
||||
{
|
||||
uint32_t len = read(&(rxBuffer[1]), YMODEM_PACKET_1K_SIZE + YMODEM_PACKET_OVERHEAD - 1);
|
||||
int32_t len = read(&(rxBuffer[1]), YMODEM_PACKET_1K_SIZE + YMODEM_PACKET_OVERHEAD - 1);
|
||||
|
||||
if(len < (YMODEM_PACKET_1K_SIZE + YMODEM_PACKET_OVERHEAD - 1))
|
||||
{
|
||||
@@ -315,7 +315,7 @@ Ymodem::Code Ymodem::receivePacket()
|
||||
{
|
||||
if(code == CodeSoh)
|
||||
{
|
||||
uint32_t len = read(&(rxBuffer[rxLength]), YMODEM_PACKET_SIZE + YMODEM_PACKET_OVERHEAD - rxLength);
|
||||
int32_t len = read(&(rxBuffer[rxLength]), YMODEM_PACKET_SIZE + YMODEM_PACKET_OVERHEAD - rxLength);
|
||||
|
||||
if(len < (YMODEM_PACKET_SIZE + YMODEM_PACKET_OVERHEAD - rxLength))
|
||||
{
|
||||
@@ -332,7 +332,7 @@ Ymodem::Code Ymodem::receivePacket()
|
||||
}
|
||||
else if(code == CodeStx)
|
||||
{
|
||||
uint32_t len = read(&(rxBuffer[rxLength]), YMODEM_PACKET_1K_SIZE + YMODEM_PACKET_OVERHEAD - rxLength);
|
||||
int32_t len = read(&(rxBuffer[rxLength]), YMODEM_PACKET_1K_SIZE + YMODEM_PACKET_OVERHEAD - rxLength);
|
||||
|
||||
if(len < (YMODEM_PACKET_1K_SIZE + YMODEM_PACKET_OVERHEAD - rxLength))
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://git.bh.ttx.sk/jaro/usbserial-dw.git
|
||||
PKG_MIRROR_HASH:=
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=9524e29a2c292bea2ffc0d7f5679905925c3d9a0
|
||||
PKG_SOURCE_VERSION:=9fcdfaf6186c7c2b73ca788e8f0db0a676a9018c
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user