X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/b162f59656e930be8826a0202b994c3cc4835882..ad32c9df36e8ec1c5b336bdad10ae771298b4d39:/src/picoproj.c?ds=sidebyside diff --git a/src/picoproj.c b/src/picoproj.c index 6e95fdb..7485f71 100644 --- a/src/picoproj.c +++ b/src/picoproj.c @@ -130,6 +130,13 @@ int main(int argc, char *argv[]) goto out_munmap; } + ret = am7xxx_set_power_mode(dev, AM7XXX_POWER_LOW); + if (ret < 0) { + perror("am7xxx_set_power_mode"); + exit_code = EXIT_FAILURE; + goto cleanup; + } + ret = am7xxx_send_image(dev, format, width, height, image, size); if (ret < 0) { perror("am7xxx_send_image");