AP_Logger: allow for logged files over 32k in size

crash_dump.bin can be large
This commit is contained in:
Andrew Tridgell 2021-12-01 21:10:57 +11:00
parent a8eed76f61
commit 6f34fa7919
2 changed files with 4 additions and 4 deletions

View File

@ -558,7 +558,7 @@ private:
struct {
struct file_list *head, *tail;
int fd;
uint16_t offset;
uint32_t offset;
HAL_Semaphore sem;
} file_content;
void file_content_update(void);

View File

@ -690,8 +690,8 @@ struct PACKED log_STAK {
struct PACKED log_File {
LOG_PACKET_HEADER;
char filename[16];
uint16_t offset;
uint16_t length;
uint32_t offset;
uint8_t length;
char data[64];
};
@ -1344,7 +1344,7 @@ LOG_STRUCTURE_FROM_VISUALODOM \
{ LOG_STAK_MSG, sizeof(log_STAK), \
"STAK", "QBBHHN", "TimeUS,Id,Pri,Total,Free,Name", "s#----", "F-----", true }, \
{ LOG_FILE_MSG, sizeof(log_File), \
"FILE", "NhhZ", "FileName,Offset,Length,Data", "----", "----" }, \
"FILE", "NIBZ", "FileName,Offset,Length,Data", "----", "----" }, \
LOG_STRUCTURE_FROM_AIS, \
{ LOG_SCRIPTING_MSG, sizeof(log_Scripting), \
"SCR", "QNIii", "TimeUS,Name,Runtime,Total_mem,Run_mem", "s-sbb", "F-F--", true }