mozgy / esp32-cam

ESP32 Cam - TimeLapse, Streaming, Prusa Connect
GNU General Public License v3.0
6 stars 0 forks source link

Not working without connection to PC #1

Open schms27 opened 4 months ago

schms27 commented 4 months ago

Hi, great project first of all, thanks a lot :-) I'm using it with a XIAO ESP32 S3 and it works great so far.

But I noticed, that the code is only working when connected to a PC/Notebook, but not when charged only through USB-C.

I think the issue is here:

void setup() {

  Serial.begin( 115200 );
  while( !Serial );   // TODO - rework all Serial outputs to log_info, log_error, log_debug
  ....

If there is no Serial present, it will wait forever. I commented the line while( !Serial ); in my code and now it works. Just wanting to let you know :-)

mozgy commented 4 months ago

Hmm, I did wonder why is that but since XIAO board gets quite hot I stopped actively testing it. Gonna research this a bit more, thank you very much!