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.
Fork of FirmwareUpdater by
Revision 4:8bfdadb09544, committed 2014-11-13
- Comitter:
- vinajarr
- Date:
- Thu Nov 13 07:40:14 2014 +0000
- Parent:
- 3:851bd91fa0ae
- Commit message:
- error correction in the program
Changed in this revision
| FirmwareUpdater.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/FirmwareUpdater.h Fri Nov 05 12:16:17 2010 +0000
+++ b/FirmwareUpdater.h Thu Nov 13 07:40:14 2014 +0000
@@ -69,6 +69,7 @@
* @param name An application name. Do not include a extention.
* @param log True if logging.
*/
+ const std::string name;
FirmwareUpdater(std::string url, std::string name, bool log = false);
/**
@@ -97,7 +98,7 @@
* @return Return 0 if a new firmware exists.
*/
int exist();
-
+ int readVersionFromFile(const char *filename);
/**
* Execute update.
*
@@ -117,7 +118,7 @@
static const std::string EXT_TXT;
static const std::string EXT_TXTTMP;
const std::string url;
- const std::string name;
+
const bool log;
LocalFileSystem local;
HTTPClient client;
@@ -171,7 +172,7 @@
* @param filename file name.
* @return A version.
*/
- int readVersionFromFile(const char *filename);
+ //int readVersionFromFile(const char *filename);
/**
* Read a version from a URL.
