From bd9a80d2bb13fea32fb1fe9a5c9a1fae1ecd494a Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 1 May 2021 11:22:19 +0800 Subject: [PATCH] Add new fault codes --- docs/docs.md | 2 ++ mesh.proto | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/docs/docs.md b/docs/docs.md index 9590cd3..8ed5e74 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -750,6 +750,8 @@ and we'll try to help. | InvalidRadioSetting | 7 | The channel tried to set a radio setting which is not supported by this chipset, radio comms settings are now undefined. | | TransmitFailed | 8 | Radio transmit hardware failure. We sent data to the radio chip, but it didn't reply with an interrupt. | | Brownout | 9 | We detected that the main CPU voltage dropped below the minumum acceptable value | +| SX1262Failure | 10 | Selftest of SX1262 radio chip failed | +| RadioSpiBug | 11 | A (likely software but possibly hardware) failure was detected while trying to send packets. 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 | diff --git a/mesh.proto b/mesh.proto index f2198a5..a5a192a 100644 --- a/mesh.proto +++ b/mesh.proto @@ -651,6 +651,12 @@ enum CriticalErrorCode { /* We detected that the main CPU voltage dropped below the minumum acceptable value */ Brownout = 9; + /* Selftest of SX1262 radio chip failed */ + SX1262Failure = 10; + + /* A (likely software but possibly hardware) failure was detected while trying to send packets. 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 */ + RadioSpiBug = 11; } /*