Removed calls to abort

This commit is contained in:
Paul Dino Jones 2025-01-18 19:01:52 -05:00
parent 0c5a953787
commit 3b0d75423f
2 changed files with 0 additions and 11 deletions

View File

@ -86,19 +86,14 @@ int check(enum sp_return result)
case SP_ERR_ARG:
//printf("Error: Invalid argument.\n");
return 1;
//abort();
case SP_ERR_FAIL:
error_message = sp_last_error_message();
//printf("error: failed: %s\n", error_message);
sloge("error: serial write failed: %s", error_message);
sp_free_error_message(error_message);
//abort();
case SP_ERR_SUPP:
printf("Error: Not supported.\n");
abort();
case SP_ERR_MEM:
printf("Error: Couldn't allocate memory.\n");
abort();
case SP_OK:
default:
return result;

View File

@ -123,21 +123,15 @@ int moza_serial_check(enum sp_return result)
switch (result)
{
case SP_ERR_ARG:
//printf("Error: Invalid argument.\n");
return 1;
//abort();
case SP_ERR_FAIL:
error_message = sp_last_error_message();
//printf("error: failed: %s\n", error_message);
sloge("error: serial write failed: %s", error_message);
sp_free_error_message(error_message);
//abort();
case SP_ERR_SUPP:
printf("Error: Not supported.\n");
//abort();
case SP_ERR_MEM:
printf("Error: Couldn't allocate memory.\n");
//abort();
case SP_OK:
default:
return result;