mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 12:44:40 +00:00
switch to 16 bit packet number
This commit is contained in:
parent
971565aed3
commit
c63536d948
@ -696,6 +696,7 @@ typedef struct _ToRadio {
|
|||||||
This is useful for serial links where there is no hardware/protocol based notification that the client has dropped the link.
|
This is useful for serial links where there is no hardware/protocol based notification that the client has dropped the link.
|
||||||
(Sending this message is optional for clients) */
|
(Sending this message is optional for clients) */
|
||||||
bool disconnect;
|
bool disconnect;
|
||||||
|
/* File Transfer Chunk */
|
||||||
XModem xmodemPacket;
|
XModem xmodemPacket;
|
||||||
};
|
};
|
||||||
} ToRadio;
|
} ToRadio;
|
||||||
|
@ -25,7 +25,7 @@ typedef enum _XModem_Control {
|
|||||||
typedef PB_BYTES_ARRAY_T(128) XModem_buffer_t;
|
typedef PB_BYTES_ARRAY_T(128) XModem_buffer_t;
|
||||||
typedef struct _XModem {
|
typedef struct _XModem {
|
||||||
XModem_Control control;
|
XModem_Control control;
|
||||||
uint8_t seq;
|
uint16_t seq;
|
||||||
uint16_t crc16;
|
uint16_t crc16;
|
||||||
XModem_buffer_t buffer;
|
XModem_buffer_t buffer;
|
||||||
} XModem;
|
} XModem;
|
||||||
@ -68,7 +68,7 @@ extern const pb_msgdesc_t XModem_msg;
|
|||||||
#define XModem_fields &XModem_msg
|
#define XModem_fields &XModem_msg
|
||||||
|
|
||||||
/* Maximum encoded size of messages (where known) */
|
/* Maximum encoded size of messages (where known) */
|
||||||
#define XModem_size 140
|
#define XModem_size 141
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
@ -56,7 +56,7 @@ class XModemAdapter
|
|||||||
|
|
||||||
int retrans = MAXRETRANS;
|
int retrans = MAXRETRANS;
|
||||||
|
|
||||||
unsigned char packetno = 0;
|
uint16_t packetno = 0;
|
||||||
|
|
||||||
#ifdef ARCH_NRF52
|
#ifdef ARCH_NRF52
|
||||||
File file = File(FSCom);
|
File file = File(FSCom);
|
||||||
|
Loading…
Reference in New Issue
Block a user