Commit 3ce37850ca06b1762887f44d8d6436dabf8226af

Authored by Antonio Carlos Domínguez Brito
1 parent 13a8bfca
Exists in master

_items_ in fifo template defined as volatile

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
fifo.h
... ... @@ -79,7 +79,9 @@ namespace arduino_due
79 79 private:
80 80  
81 81 T _buffer_p_[LENGTH];
82   - int _first_,_last_,_items_;
  82 + int _first_,_last_;
  83 +
  84 + volatile int _items_;
83 85  
84 86 void _init_() { _first_=_last_=-1; _items_=0; }
85 87  
... ...