2021-05-20 06:17 PM
Hi,
I'm trying to use CubeMonitor to access public variables of a base class, and CubeMonitor doesn't see them.
The general structure I have is:
class Base {
public:
int var_1;
int var_2;
}
class Derived: public Base {
public:
int var_3;
int var_4;
}
When I load the corresponding *.elf file into CubeMonitor....
I can see:
instanceDerived.var_3,
instanceDerived.var_4
but I can't see:
instanceDerived.var_1,
instanceDerived.var_2
I expect that "public" variables in the base class should be "public" variables in the derived class. Why can't I see them? Is there something I'm doing wrong?
Best,
Nat
Solved! Go to Solution.
2021-05-20 10:42 PM
2021-05-20 10:42 PM
Is there typo here?
var1 -> var_1
var2 -> var_2
2021-05-20 10:52 PM
Hi @BParh.1 - yep, thanks for picking that up. That's just a typo. Fixed it up in the question now.