refactor adafruit fifo, move malloc from constructor to begin()
This commit is contained in:
1 parent
c078c3565f
commit
ce38d3ce71
8 files changed
+22
-12
No files matched your search
@@ -37,7 +37,6 @@
|
||||
#define BLEHIDADAFRUIT_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
#include "utility/adafruit_fifo.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEHidGeneric.h"
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
#define BLEHIDGENERIC_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
#include "utility/adafruit_fifo.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
@@ -140,6 +140,8 @@ void BLEMidi::begin(int baudrate)
|
||||
|
||||
err_t BLEMidi::begin(void)
|
||||
{
|
||||
_rxd_fifo.begin();
|
||||
|
||||
// Invoke base class begin()
|
||||
VERIFY_STATUS( BLEService::begin() );
|
||||
|
||||
|
||||
@@ -136,6 +136,8 @@ void BLEUart::bufferTXD(bool enable)
|
||||
|
||||
err_t BLEUart::begin(void)
|
||||
{
|
||||
_rxd_fifo.begin();
|
||||
|
||||
// Invoke base class begin()
|
||||
VERIFY_STATUS( BLEService::begin() );
|
||||
|
||||
|
||||
Reference in new issue
Block a user