aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/systemcmds/hardfault_log/hardfault_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/hardfault_log/hardfault_log.c b/src/systemcmds/hardfault_log/hardfault_log.c
index d0d67b4fc..f56e47029 100644
--- a/src/systemcmds/hardfault_log/hardfault_log.c
+++ b/src/systemcmds/hardfault_log/hardfault_log.c
@@ -196,7 +196,7 @@ static void identify(char *caller)
****************************************************************************/
static int hardfault_get_desc(char *caller, struct bbsramd_s *desc, bool silent)
{
- int ret = ENOENT;
+ int ret = -ENOENT;
int fd = open(HARDFAULT_PATH, O_RDONLY);
if (fd < 0 ) {
if (!silent) {