GFRM210 GP firmware has header ID 'H'
Change-Id: I5dcda742b214c4f508d597297db4ebce906df72a
diff --git a/profiles/oad/oad.c b/profiles/oad/oad.c
index 3f481a3..08b8df4 100644
--- a/profiles/oad/oad.c
+++ b/profiles/oad/oad.c
@@ -377,7 +377,6 @@
uint32_t size = get_le32(header+4) & 0x00ffffff;
int id = header[7];
enum OAD_FirmwareType type;
- int index = (int)type;
switch(id) {
case 'T':
@@ -385,6 +384,7 @@
type = OADFW_TI;
break;
case 'G':
+ case 'H':
type = OADFW_GP;
break;
default:
@@ -396,6 +396,7 @@
id, file, OAD_MAJOR_VERSION(version), OAD_MINOR_VERSION(version));
return;
}
+ int index = (int)type;
if (version <= oaddev->disk[index].version) {
error("OAD ignoring older firmware: file=%s type=%d version=%d.%d",
file, type, OAD_MAJOR_VERSION(version), OAD_MINOR_VERSION(version));