SWUpdate library to be used with RPC.

Fork of SWUpdate by David Smart

Revision:
4:1a3656ae80dc
Parent:
3:c69fff55fc60
Child:
5:e10f18e9b93a
--- a/SWUpdate.h	Sat Jun 14 18:18:28 2014 +0000
+++ b/SWUpdate.h	Sat Jun 14 18:23:04 2014 +0000
@@ -1,4 +1,5 @@
-
+/// Firmware Over The Air (FOTA) Update.
+///
 #include "mbed.h"
 
 #ifndef SWUPDATE_H
@@ -32,9 +33,8 @@
 ///
 /// You can create the server "myprog.txt" file with this perl script (not
 /// every detail is shown, but it should be easy to figure out).
-///
+/// <<code>>
 /// # Read current .txt file
-/// <<code>>
 /// open (FT, "<$txt") || die("Can't read $txt.");
 /// $ver = <FT>; chomp $ver; close FT;
 /// $ver =~ s/(\d+),.*/$1/;
@@ -49,7 +49,7 @@
 ///     $byteCount++;
 ///     }
 /// close FB;
-/// # Advance version
+/// # Advance version number and write the new .txt file
 /// $ver++; print "$ver Checksum is $cksum over $byteCount bytes.\n";
 /// open (FT, ">$txt") || die("Can't write update to $txt.");
 /// printf(FT "%d,%d,%d\n", $ver, $cksum,$byteCount);