cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMonitor doesn't understand 'bool' types

frackers
Senior

Trying to monitor a 'C' variable of type bool results in the error

not connected ! bad parameter (7)

and the probe connection drops. It then comes back all on its own!!

Changing the variable to any other type and the monitor runs fine.

1 ACCEPTED SOLUTION

Accepted Solutions

No update since a while, closing the post.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Thierry
Senior

Dear frackers,

Did you define your own bool type or did you use

#include <stdbool.h>

?

NPaqu.1
Associate

I have the same issue, all bool values appear as undefined type. I'm including <stdbool.h>.

CubeMonitor does not seem to convert GCC's _Bool to uint8_t.

Dear NPaqu.1,

Sorry for the inconvenience, but unfortunately the bool type from <stdbool.h> is not supported for the time being. This is definitively something we will consider in an upcoming release.

Meanwhile, you can define your own bool type like this :

typedef enum { false, true } bool;

or even like this :

typedef int bool;
#define true 1
#define false 0

No update since a while, closing the post.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.