Commit 3ce37850ca06b1762887f44d8d6436dabf8226af

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

_items_ in fifo template defined as volatile

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