Added DEBUG information (thanks again projectkk2glider!)

Conflicts:
	radio/src/opentx.cpp
This commit is contained in:
bsongis
2014-09-05 17:54:12 +02:00
parent 500602e8cc
commit 056d915d37
7 changed files with 89 additions and 50 deletions
+5 -1
View File
@@ -47,6 +47,10 @@ class Fifo
{
}
bool empty() {
return (ridx == widx);
}
void push(uint8_t byte) {
uint32_t next = (widx+1) & (N-1);
if (next != ridx) {
@@ -56,7 +60,7 @@ class Fifo
}
bool pop(uint8_t & byte) {
if (ridx == widx) {
if (empty()) {
return false;
}
else {