used Size+1 insted of size because no c++11 (no constexpr)

pull/1161/head
Odin Holmes 2015-06-05 20:04:07 +02:00
parent c918e92124
commit 6cc142d8b1
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ private:
volatile uint16_t write;
volatile uint16_t read;
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+1];
};
#endif