Hello, I have the following class inside a Bela project (I am just showing the private member variables):
/***** BelaButton.h *****/
#pragma once
#include "Bela.h"
#include "global.h"
//#include "math.h"
class BelaButton{
private:
//int whatsgoingon;
int mFrame;
//bool ffs;
//bool tismanassou;
int mButton = 1, mButton_last;
//int mPressTimehghgfghfhgfh = 0;
const int mDebounce = 30; // debounce for 30 renders ~= 10 ms
bool mBang;
bool mWeird;
bool mLongPress;
//int mPressCounter;
//int mPressTime = 0;
bool mPressStatus;
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
Bela stopped
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