Actually, I didn't see the call in update_value, only the one at the bottom, but you should be ok.
I can't run the code without replacing of the serial I/O, so it's hard to see what's actually occuring.
You increment should work, you can use:
I can't run the code without replacing of the serial I/O, so it's hard to see what's actually occuring.
You increment should work, you can use:
g_loop_count += 1for that.