java: fix C types for readBytes in nunchuck

Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Petre Eftime 2015-08-28 18:47:52 +03:00 committed by Mihai Tudor Panu
parent 45b83502a1
commit 3aad8e367f
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ bool NUNCHUCK::writeByte(uint8_t reg, uint8_t byte)
return true;
}
uint8_t NUNCHUCK::readBytes(uint8_t reg, uint8_t *buffer, unsigned int len)
int NUNCHUCK::readBytes(uint8_t reg, uint8_t *buffer, int len)
{
if (!len || !buffer)
return 0;

View File

@ -95,7 +95,7 @@ namespace upm {
* @param len Number of bytes to read
* @return Number of bytes read
*/
uint8_t readBytes(uint8_t reg, uint8_t *buffer, unsigned int len);
int readBytes(uint8_t reg, uint8_t *buffer, int len);
/**
* Initializes the controller. Here, we disable encryption after