summaryrefslogtreecommitdiff
path: root/chip/g/upgrade_fw.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/upgrade_fw.c')
-rw-r--r--chip/g/upgrade_fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/upgrade_fw.c b/chip/g/upgrade_fw.c
index 71a9d36403..276eac8f92 100644
--- a/chip/g/upgrade_fw.c
+++ b/chip/g/upgrade_fw.c
@@ -330,7 +330,7 @@ static int chunk_came_too_soon(uint32_t block_offset)
}
if (!prev_timestamp) {
- int hard_reset = system_get_reset_flags() & RESET_FLAG_HARD;
+ int hard_reset = system_get_reset_flags() & EC_RESET_FLAG_HARD;
/*
* If we just recovered from a hard reset, we have to wait until