summaryrefslogtreecommitdiffstats
path: root/firmware.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-05-29 04:02:45 +0200
committerDoug Zongker <dougz@android.com>2009-05-29 04:02:45 +0200
commit07e1dca7068284c4f3013550335029eb72b39b82 (patch)
tree52685fc37135c50e0abf2518c8028f1f2d081919 /firmware.c
parentundo temporary alignment hack (diff)
downloadandroid_bootable_recovery-07e1dca7068284c4f3013550335029eb72b39b82.tar
android_bootable_recovery-07e1dca7068284c4f3013550335029eb72b39b82.tar.gz
android_bootable_recovery-07e1dca7068284c4f3013550335029eb72b39b82.tar.bz2
android_bootable_recovery-07e1dca7068284c4f3013550335029eb72b39b82.tar.lz
android_bootable_recovery-07e1dca7068284c4f3013550335029eb72b39b82.tar.xz
android_bootable_recovery-07e1dca7068284c4f3013550335029eb72b39b82.tar.zst
android_bootable_recovery-07e1dca7068284c4f3013550335029eb72b39b82.zip
Diffstat (limited to 'firmware.c')
-rw-r--r--firmware.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware.c b/firmware.c
index 34b291835..e2e4fe630 100644
--- a/firmware.c
+++ b/firmware.c
@@ -39,6 +39,10 @@ int remember_firmware_update(const char *type, const char *data, int length) {
return 0;
}
+// Return true if there is a firmware update pending.
+int firmware_update_pending() {
+ return update_data != NULL && update_length > 0;
+}
/* Bootloader / Recovery Flow
*