mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
- sliceByteBuffer() was not setting native order on the duplicated buffer. This caused all array-copyin functions to generate bad values. - Correctly handle unsigned byte and unsigned short values. These could read/write to bad locations previously. - Implement custom version of imaqReadFile() to always pass in NULL for the colorTable. Eventually a more-complete version should be written. Also this works around a crash in imaqGetErrorText() by not calling it from throwJavaException(). It's not clear why imaqGetErrorText() is crashing at present (my best guess is there's still something fishy with multiple C++ lib versions getting loaded somehow), as this used to work. Instead, the exception now just gives the error code without the error message, which is not user friendly but at least doesn't crash. This will be fixed in a future commit by creating our own version of imaqGetErrorText() based on the information available in the header file. Change-Id: I4d099e62ee41f8e2a50089806561be191cb5d9d7