Merge branch 'master' into master

This commit is contained in:
hathach authored and GitHub committed 2019-01-09 20:58:36 +07:00
commit 17a3737145
700 files changed
+212468 -96144

No files matched your search

@@ -1,13 +1,13 @@
/**************************************************************************/
/*!
@file BLECharacteristic.cpp
@author hathach
@author hathach (tinyusb.org)
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2016, Adafruit Industries (adafruit.com)
Copyright (c) 2018, Adafruit Industries (adafruit.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -455,12 +455,12 @@ uint16_t BLECharacteristic::write32(int num)
* @param offset offset of value (dfeault is 0)
* @return number of read bytes
*/
uint16_t BLECharacteristic::read(void* buffer, uint16_t bufsize)
uint16_t BLECharacteristic::read(void* buffer, uint16_t bufsize, uint16_t offset)
{
ble_gatts_value_t value =
{
.len = bufsize,
.offset = 0, // TODO gatts long read
.offset = offset,
.p_value = (uint8_t*) buffer
};