BLEHidGeneric: fix missing writeN() function update

Otherwise getting the following error:
uint16_t BLECharacteristic::write(const void*, uint16_t): 431: verify failed, error = NRF_ERROR_INVALID_ADDR

Signed-off-by: Robert Hodaszi <hodrob84@gmail.com>
This commit is contained in:
Robert Hodaszi committed 2018-02-21 16:48:56 +01:00
1 parent fc2e3603c8
commit 45b4e58a6a
1 file changed
+1 -1
@@ -232,7 +232,7 @@ err_t BLEHidGeneric::begin(void)
_chr_control.setPermission(SECMODE_NO_ACCESS, SECMODE_ENC_NO_MITM);
_chr_control.setFixedLen(1);
VERIFY_STATUS( _chr_control.begin() );
_chr_control.write( (uint8_t) 0 );
_chr_control.write8(0);
return ERROR_NONE;
}