Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Fota/Fragmentation/WriteFile.h
- Revision:
- 72:b1e07ec1c30d
- Parent:
- 70:0c5b5b02d17b
--- a/Fota/Fragmentation/WriteFile.h Fri Nov 08 09:34:58 2019 -0600
+++ b/Fota/Fragmentation/WriteFile.h Mon Feb 17 14:43:04 2020 -0600
@@ -23,10 +23,10 @@
public:
WriteFile(mDot* dot);
~WriteFile();
- void writeFile(uint8_t* buffer, uint32_t size);
- void readFile(uint8_t* buffer, uint32_t size);
- void seekFile(uint32_t index);
- void createFile(uint16_t numOfFrags, uint8_t fragSize, uint8_t padding);
+ int writeFile(uint8_t* buffer, uint32_t size);
+ int readFile(uint8_t* buffer, uint32_t size);
+ int seekFile(uint32_t index);
+ int createFile(uint16_t numOfFrags, uint8_t fragSize, uint8_t padding);
uint64_t completeFile(uint16_t numOfFrags, uint8_t padding, uint32_t total_frags);
void cleanUp(bool complete);
void reset();
@@ -34,7 +34,7 @@
private:
mDot* _dot;
char* _temp;
- char* _firmware;
+ char _firmware[2];
uint8_t* _frag;
uint8_t _padding;
uint8_t _frag_size;