diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-01-04 21:15:22 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-01-04 21:15:22 +0300 |
commit | 5bd28a1aea25e83e6e1d7a0ca50cd000e7baf1a7 (patch) | |
tree | 059d11bfc384d80c7ff07d3457e994ac50a0c07e /src/Fans | |
parent | 8ded9143fa9d07dcddd525683403980c42881f1a (diff) |
Conditional GCode fixes and exception specifiers
Loops are now working
Added noexcept specifiers to omst of the remaining C++ source files
Diffstat (limited to 'src/Fans')
-rw-r--r-- | src/Fans/RemoteFan.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Fans/RemoteFan.cpp b/src/Fans/RemoteFan.cpp index d48401d9..d3ececef 100644 --- a/src/Fans/RemoteFan.cpp +++ b/src/Fans/RemoteFan.cpp @@ -22,10 +22,16 @@ RemoteFan::RemoteFan(unsigned int fanNum, CanAddress boardNum) noexcept RemoteFan::~RemoteFan() noexcept { CanMessageGenericConstructor cons(M950FanParams); - cons.AddUParam('F', fanNumber); - cons.AddStringParam('C', "nil"); - String<1> dummy; - (void)cons.SendAndGetResponse(CanMessageType::m950Fan, boardNumber, dummy.GetRef()); + try + { + cons.AddUParam('F', fanNumber); + cons.AddStringParam('C', "nil"); + String<1> dummy; + (void)cons.SendAndGetResponse(CanMessageType::m950Fan, boardNumber, dummy.GetRef()); + } + catch (...) + { + } } bool RemoteFan::Check() noexcept |