From eef44f4ff66c6ba036fefcc5017390a66565c038 Mon Sep 17 00:00:00 2001 From: Andrew Metcalf Date: Wed, 15 Sep 2021 13:49:24 -0700 Subject: [PATCH] Remove extra call to hasPendingErase in docs performPendingErase already checks hasPendingErase so there's no need to document checking for a pending erase before requesting the erase: https://github.com/particle-iot/device-os/blob/0bc16d94772999c016aa4c70c1b330f53321f90f/services/inc/eeprom_emulation.h#L245 --- src/content/reference/device-os/firmware.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content/reference/device-os/firmware.md b/src/content/reference/device-os/firmware.md index a0bf5224ed..8bbdb64900 100644 --- a/src/content/reference/device-os/firmware.md +++ b/src/content/reference/device-os/firmware.md @@ -15364,9 +15364,7 @@ run without rebooting for a long time. // EXAMPLE USAGE void setup() { // Erase full EEPROM page at boot when necessary - if(EEPROM.hasPendingErase()) { - EEPROM.performPendingErase(); - } + EEPROM.performPendingErase(); } ```