Big Mouth Billy Bass automation library
Diff: song.hpp
- Revision:
- 7:dba9221acf48
- Parent:
- 6:ea8136eb6976
--- a/song.hpp Thu Jun 20 03:04:36 2013 +0000 +++ b/song.hpp Thu Jun 20 04:10:22 2013 +0000 @@ -53,11 +53,8 @@ Action *getActions() { return actions; } - bool addAction(float _time, int _state, DigitalOut* _out, char _code) { - if (numActions >= MAX_ACTIONS_PER_SONG) return false; - actions[numActions++].set(_time, _state, _out, _code); - return true; - } + bool addAction(float _time, int _state, DigitalOut* _out, char _code); + unsigned getNumActions() const { return numActions; }