False conditional execution

Hello everyone,
I am facing a weird issue. The MCU execute a false condition. Here is the use case:

The Tools:
1- Using ES32-S3 MCU
2- Arduino IDE 1.8.19

The use case:

  • Waking up the ESP32 MCU from sleep mode by button pressing. The MCU check an "if" statement, if the variable is false it should execute the body of "if" otherwise no. What happening is, Although the variable is true, the "if" body is being executed.

I attached a log depicts the variable value before and after "if".

appreciate your help!

thanks

Back at you!

We can get further if you post the code that does this, or a reduced sketch that does the same thing that compiles and we could run for ourselves.

Even if it was possible to determine what is going on from what you posted, very few ppl want to squint at screen shots.

Use the forum tools for posting code and textual output as such.

a7

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.