Skip to content

Commit

Permalink
Fixed incomplete stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
krzychb committed Aug 18, 2016
1 parent 133b392 commit 513e693
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -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":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EspSaveCrash
version=1.0.1
version=1.0.2
author=Krzysztof Budzynski <krzychb@gazeta.pl>
maintainer=Krzysztof Budzynski <krzychb@gazeta.pl>
sentence=Automatically saves exception details and stack trace to flash in case of ESP8266 crash.
Expand Down
7 changes: 4 additions & 3 deletions src/EspSaveCrash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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("<<<stack<<<");
readFrom = readFrom + SAVE_CRASH_STACK_TRACE + stackLength;
}
Expand Down
4 changes: 2 additions & 2 deletions src/EspSaveCrash.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Repository: https://github.com/krzychb/EspSaveCrash
File: EspSaveCrash.h
Revision: 1.0.1
Date: 14-Aug-2016
Revision: 1.0.2
Date: 18-Aug-2016
Author: krzychb at gazeta.pl
Copyright (c) 2016 Krzysztof Budzynski. All rights reserved.
Expand Down

0 comments on commit 513e693

Please # to comment.