diff options
author | Manuel <manuel@duet3d.com> | 2020-11-30 17:43:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 17:43:15 +0300 |
commit | 77d8e38c85b00c9a706d7bd8639fc6b4de813764 (patch) | |
tree | 6896ab66334e16f2ded63ced0ab51af5135cc2e6 /src/GCodes/GCodeException.h | |
parent | 1acd66057d369a56fa9fa0a91ad68ee89356a9e3 (diff) |
Implement flashing PanelDue v3 from Duet mainboards (#451)
* Implement flashing PanelDue v3 from Duet mainboards
This uses the required code extracted from BOSSA
* Remove unsused blocks with #if 0 ... #endif
Initialize PanelDueUpdater on first use
Simplify excpetion handling in PanelDueUpdater
Undo some changes made to bossa code to keep it closer to original
(except for removed parts)
Diffstat (limited to 'src/GCodes/GCodeException.h')
-rw-r--r-- | src/GCodes/GCodeException.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GCodes/GCodeException.h b/src/GCodes/GCodeException.h index c607e2d0..4fb56d85 100644 --- a/src/GCodes/GCodeException.h +++ b/src/GCodes/GCodeException.h @@ -13,6 +13,8 @@ class GCodeException { public: + GCodeException(const char *msg) noexcept: line(-1), column(-1), message(msg), haveStringParam(false) { } + GCodeException(int lin, int col, const char *msg) noexcept : line(lin), column(col), message(msg), haveStringParam(false) { } GCodeException(int lin, int col, const char *msg, const char *sparam) noexcept : line(lin), column(col), message(msg), haveStringParam(true) |