Why is this private variable in a c++ object not updating? To demonstrate my issue I have written a very simple program in Arduino: