Program to update the D7A modem's firmware.

Dependencies:   modem_ref_helper DebouncedInterrupt

Revision:
20:100143cecc41
Parent:
18:a8a640941018
Child:
21:308466f40058
--- a/main.cpp	Mon Jul 10 11:36:26 2017 +0000
+++ b/main.cpp	Mon Jul 10 13:09:26 2017 +0000
@@ -278,6 +278,16 @@
                 button_user.wait();
 #endif
             }
+            else
+            {
+                PRINT("\r\nReseting firmware: v%d.%d.%d --> v%d.%d.%d\r\n", 
+                        rev.fw_version.major, rev.fw_version.minor, rev.fw_version.patch,
+                        cup->fw_major, cup->fw_minor, cup->fw_patch);
+#ifdef DEBUG_BUTTON
+                PRINT("PRESS USER BUTTON TO START UPGRADE...\r\n");
+                button_user.wait();
+#endif
+            }
         
             cup_start_update(cup_slack, bootloader);
         }