mBot Neo Traceback Error


#1

Sorry for making a lot of questions, but I am learning MBot2 intensively and a lot of experiences creates some problems.

This is a new one:

My program works fine in Live Mode.
In Upload Mode, running the same program, produces this message on the display of the Mbot2 "Traceback (most recent call last): File “main”. line 59 , in is_btn_press
and everything get stuck.

Any ide of what is that?


#2

Partially found the problem:
I had an istruction ; set Color Paint = QuadRGB R1 Color.
That was the problem
Once removed that instruction, the errore disappered.

But I ask myself why that instruction creates a crash in the program (in Upload Mode only)


#3

@Mrb
Can you provide your code (a screenshot, or the Python code)?