mirror of https://github.com/ARMmbed/mbed-os.git
Update CircBuffer.h
parent
cad87d11d4
commit
c48e5ea445
|
@ -56,7 +56,7 @@ public:
|
||||||
private:
|
private:
|
||||||
volatile uint16_t write;
|
volatile uint16_t write;
|
||||||
volatile uint16_t read;
|
volatile uint16_t read;
|
||||||
static const int size = Size+1;
|
static const int size = Size+1; //a modern optimizer should be able to remove this so it uses no ram.
|
||||||
T buf[Size];
|
T buf[Size];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue