Hello, I have the following class inside a Bela project (I am just showing the private member variables):
/***** BelaButton.h *****/
int mButton = 1, mButton_last;
//int mPressTimehghgfghfhgfh = 0;
const int mDebounce = 30; // debounce for 30 renders ~= 10 ms
//int mPressTime = 0;
public: // ......
I already used this class normally, with the variables mFrame, mButton, mButton_last, mDebounce and mBang. I tried to add 4 more variables (the ones at the end of the code) but there was an error:
Running project ...
Floating point exception
Makefile:595: recipe for target 'runide' failed
make: *** [runide] Error 136
I tried out different combinations. All the commented out variables give this error while the other don't.
Any idea on what could be causing this?
Edit: To add to the peculiarity of the situation, converting the data type of mPressTime varialbe to bool allows it to Run normally, but converting mPressCounter into bool, keeps giving that same error