Merge pull request #1161 from porkybrain/master

Fix my overflow bug in CircBuffer
pull/1164/head
Martin Kojtal 2015-06-08 08:01:09 +01:00
commit ccd547492b
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ private:
volatile uint16_t write; volatile uint16_t write;
volatile uint16_t read; volatile uint16_t read;
static const int size = Size+1; //a modern optimizer should be able to remove this so it uses no ram. 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 #endif