From 77ed84c7af42e3aaff84250d8921366d8347b527 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Mon, 5 Aug 2024 14:27:31 -0700 Subject: [PATCH] Add new critical fault codes for flash corruption for https://github.com/meshtastic/firmware/issues/4184 --- meshtastic/mesh.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 8a3e86f..c8bd2ef 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1291,6 +1291,19 @@ enum CriticalErrorCode { * If this occurs on your board, please post in the forum so that we can ask you to collect some information to allow fixing this bug */ RADIO_SPI_BUG = 11; + + /* + * Corruption was detected on the flash filesystem but we were able to repair things. + * If you see this failure in the field please post in the forum because we are interested in seeing if this is occurring in the field. + */ + FLASH_CORRUPTION_RECOVERABLE = 12; + + /* + * Corruption was detected on the flash filesystem but we were unable to repair things. + * NOTE: Your node will probably need to be reconfigured the next time it reboots (it will lose the region code etc...) + * If you see this failure in the field please post in the forum because we are interested in seeing if this is occurring in the field. + */ + FLASH_CORRUPTION_UNRECOVERABLE = 13; } /*