revamp android backend initialization error handling and bump the senseglove libraries to the latest experimental ble builds
This commit is contained in:
@@ -93,6 +93,18 @@ bool USGBackend::InitializeBackend()
|
||||
const int32 Result = FSGConnect::Init();
|
||||
switch (Result)
|
||||
{
|
||||
case -103:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Invalid Java method ID!");
|
||||
return false;
|
||||
case -102:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Invalid Java class!");
|
||||
return false;
|
||||
case -101:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Invalid Java environment!");
|
||||
return false;
|
||||
case -100:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Generic Error! Note: you should never see this!");
|
||||
return false;
|
||||
case -3:
|
||||
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
||||
return false;
|
||||
@@ -136,6 +148,18 @@ bool USGBackend::UninitializeBackend()
|
||||
const int32 Result = FSGConnect::Dispose();
|
||||
switch (Result)
|
||||
{
|
||||
case -103:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Invalid Java method ID!");
|
||||
return false;
|
||||
case -102:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Invalid Java class!");
|
||||
return false;
|
||||
case -101:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Invalid Java environment!");
|
||||
return false;
|
||||
case -100:
|
||||
SGLOG_ERROR("Android JNI-specific Error: Generic Error! Note: you should never see this!");
|
||||
return false;
|
||||
case -3:
|
||||
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user