diff options
| -rw-r--r-- | NK_C_API.cc | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/NK_C_API.cc b/NK_C_API.cc index bac11b3..822c95d 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -90,10 +90,10 @@ uint8_t get_without_result(T func){          NK_last_command_status = libraryException.exception_id();      }      catch (const InvalidCRCReceived &invalidCRCException){ -	;;; +      ;      }      catch (const DeviceCommunicationException &deviceException){ -        NK_last_command_status = -1; +        NK_last_command_status = 256-deviceException.getType();      }      return NK_last_command_status;  } | 
