invert variable check to make it correct

3 jobs for 13-open-mode-not-working in 1 minute and 13 seconds
Status Job ID Name Coverage
  Build
passed #134200
build_esp32_application

00:01:05

passed #134199
build_tests

00:01:05

 
  Test
passed #134201
test_application

00:00:07