From da6899d1edc04c2dd5fe0ab783d3dc82c916818b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 28 May 2024 16:16:14 +0300 Subject: [iot/goam] Moved nocamera icon after press after the camera has set resolution --- Year 3/Internet of things/goam/main/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Year 3/Internet of things/goam/main/main.c b/Year 3/Internet of things/goam/main/main.c index c582dd1..35088f3 100644 --- a/Year 3/Internet of things/goam/main/main.c +++ b/Year 3/Internet of things/goam/main/main.c @@ -168,11 +168,12 @@ static void debug_serial_print_image(const char* image, size_t length) { } static void take_photo() { + ptc06_set_image_resolution((enum Resolution)res); + display_printat(DCHAR_NO_CAMERA, CONFIG_DISPLAY_ICONS_ROW, CONFIG_CAMERA_COLUMN); - ptc06_set_image_resolution((enum Resolution)res); char* image; size_t length = ptc06_get_image(&image); if (is != WS_ONLY) { -- cgit v1.3.1-26-gb76a