From 513e6937eba57529b66dac44ab25650452546275 Mon Sep 17 00:00:00 2001 From: Krzysztof Date: Thu, 18 Aug 2016 22:13:37 +0200 Subject: [PATCH] Fixed incomplete stack trace --- library.json | 2 +- library.properties | 2 +- src/EspSaveCrash.cpp | 7 ++++--- src/EspSaveCrash.h | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/library.json b/library.json index 654b951..e0a9576 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "EspSaveCrash", - "version": "1.0.1", + "version": "1.0.2", "keywords": "crash, exception, restart, software WDT, diagnostics", "description": "Automatically saves exception details and stack trace to flash in case of ESP8266 crash.", "repository": diff --git a/library.properties b/library.properties index a49337a..7c50d39 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=EspSaveCrash -version=1.0.1 +version=1.0.2 author=Krzysztof Budzynski maintainer=Krzysztof Budzynski sentence=Automatically saves exception details and stack trace to flash in case of ESP8266 crash. diff --git a/src/EspSaveCrash.cpp b/src/EspSaveCrash.cpp index 142b041..834bd71 100644 --- a/src/EspSaveCrash.cpp +++ b/src/EspSaveCrash.cpp @@ -5,8 +5,8 @@ Repository: https://github.com/krzychb/EspSaveCrash File: EspSaveCrash.cpp - Revision: 1.0.1 - Date: 15-Aug-2016 + Revision: 1.0.2 + Date: 18-Aug-2016 Author: krzychb at gazeta.pl Copyright (c) 2016 Krzysztof Budzynski. All rights reserved. @@ -178,11 +178,12 @@ void EspSaveCrash::print(Print& outputDev) if (currentAddress - SAVE_CRASH_EEPROM_OFFSET > SAVE_CRASH_SPACE_SIZE) { outputDev.println("\nIncomplete stack trace saved!"); - break; + goto eepromSpaceEnd; } } outputDev.println(); } + eepromSpaceEnd: outputDev.println("<<