mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Removed uses of deprecated functions (#709)
This commit is contained in:
committed by
Peter Johnson
parent
8b2e656bde
commit
1276489961
@@ -358,22 +358,6 @@ Java_edu_wpi_first_wpilibj_hal_HAL_getBrownedOut(JNIEnv* env, jclass) {
|
||||
return val;
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HAL
|
||||
* Method: HAL_SetErrorData
|
||||
* Signature: (Ljava/lang/String;)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_edu_wpi_first_wpilibj_hal_HAL_setErrorData(JNIEnv* env, jclass,
|
||||
jstring error) {
|
||||
JStringRef errorStr{env, error};
|
||||
|
||||
NETCOMM_LOG(logDEBUG) << "Set Error: " << errorStr.c_str();
|
||||
NETCOMM_LOG(logDEBUG) << "Length: " << errorStr.size();
|
||||
jint returnValue = HAL_SetErrorData(errorStr.c_str(), (int32_t)errorStr.size(), 0);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HAL
|
||||
* Method: HAL_SendError
|
||||
|
||||
Reference in New Issue
Block a user