fix: fix wrong messages (#183)

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
This commit is contained in:
Patrick Gehrsitz 2023-09-17 12:06:45 +02:00 committed by GitHub
parent 454a5fff57
commit ae2bc21404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ function construct_streamer {
if [[ "$(is_raspberry_pi)" = "1" ]] && [[ "$(is_ubuntu_arm)" = "0" ]]; then if [[ "$(is_raspberry_pi)" = "1" ]] && [[ "$(is_ubuntu_arm)" = "0" ]]; then
MULTI_INSTANCES+=( "${cams}" ) MULTI_INSTANCES+=( "${cams}" )
else else
log_msg "WARN: Mode 'multi' is not supported on your device!" log_msg "WARN: Mode 'camera-streamer' is not supported on your device!"
log_msg "WARN: Falling back to Mode 'mjpg'" log_msg "WARN: Falling back to Mode 'ustreamer'"
MJPG_INSTANCES+=( "${cams}" ) MJPG_INSTANCES+=( "${cams}" )
fi fi
;; ;;

View File

@ -39,13 +39,13 @@ function help_msg {
function deprecated_msg_1 { function deprecated_msg_1 {
log_msg "Parameter 'streamer' is deprecated!" log_msg "Parameter 'streamer' is deprecated!"
log_msg "Please use mode: [ mjpg | multi ]" log_msg "Please use mode: [ ustreamer | camera-streamer ]"
log_msg "ERROR: Please update your crowsnest.conf! Stopped." log_msg "ERROR: Please update your crowsnest.conf! Stopped."
} }
function unknown_mode_msg { function unknown_mode_msg {
log_msg "WARN: Unknown Mode configured!" log_msg "WARN: Unknown Mode configured!"
log_msg "WARN: Using 'mode: mjpg' as fallback!" log_msg "WARN: Using 'mode: ustreamer' as fallback!"
} }
## v4l2_control lib ## v4l2_control lib