mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Some general HAL cleanups (#153)
This commit is contained in:
committed by
Peter Johnson
parent
aa9c2b2c92
commit
ea6876e81f
@@ -23,8 +23,7 @@ Java_edu_wpi_first_wpilibj_hal_CompressorJNI_initializeCompressor(
|
||||
int32_t status = 0;
|
||||
auto handle = HAL_InitializeCompressor(module, &status);
|
||||
if (status == PARAMETER_OUT_OF_RANGE) {
|
||||
//TODO: Move 63 to a constant (Thad will do)
|
||||
ThrowBoundaryException(env, module, 0, 63);
|
||||
ThrowBoundaryException(env, module, 0, HAL_GetNumPCMModules());
|
||||
}
|
||||
|
||||
return (jint)handle;
|
||||
|
||||
Reference in New Issue
Block a user