diff --git a/esp32_firmware/esp32_cam_uart_stream/esp32_cam_uart_stream.ino b/esp32_firmware/esp32_cam_uart_stream/esp32_cam_uart_stream.ino index 1758b62..7062ed2 100644 --- a/esp32_firmware/esp32_cam_uart_stream/esp32_cam_uart_stream.ino +++ b/esp32_firmware/esp32_cam_uart_stream/esp32_cam_uart_stream.ino @@ -98,8 +98,10 @@ void loop() { break; // Toggle cases - case 'M': // Toggle Mirror + case 'M': // Toggle Mirror and vflip s->set_hmirror(s, !s->status.hmirror); + if (s->status.hmirror) + s->set_vflip(s, !s->status.vflip); break; case '>': disable_dithering = !disable_dithering; @@ -180,4 +182,4 @@ void DitherImage(camera_fb_t* fb) { fb->buf[(y+1*fb->width) + x+1] = fb->buf[(y+1*fb->width) + x+1] + quant_error * 1 / 16; } } -} \ No newline at end of file +}