From 217242b54aad86322b458ef64e9e45dec2bb6041 Mon Sep 17 00:00:00 2001 From: Patrick Gehrsitz Date: Fri, 26 Apr 2024 22:56:47 +0200 Subject: [PATCH] fix: fix picamera resolution logging Signed-off-by: Patrick Gehrsitz --- libs/hwhandler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwhandler.sh b/libs/hwhandler.sh index 8c4651e..0b0db78 100755 --- a/libs/hwhandler.sh +++ b/libs/hwhandler.sh @@ -87,7 +87,7 @@ list_picam_resolution() { local prefix prefix="$(date +'[%D %T]') crowsnest:" log_msg "'libcamera' device(s) resolution(s) :" - while read -r i; do + while IFS= read -r i; do printf "%s\t\t%s\n" "${prefix}" "${i}" >> "${CROWSNEST_LOG_PATH}" done < <(libcamera-hello --list-cameras | sed '1,2d;s/Modes:/Colorspace:/') }