diff options
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 1f8c12b..bac11b3 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -89,6 +89,12 @@ uint8_t get_without_result(T func){ catch (LibraryException & libraryException){ NK_last_command_status = libraryException.exception_id(); } + catch (const InvalidCRCReceived &invalidCRCException){ + ;;; + } + catch (const DeviceCommunicationException &deviceException){ + NK_last_command_status = -1; + } return NK_last_command_status; } |