From 52410ea64e28812b5bc082343287b3e43da33487 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 15 Jul 2021 12:02:06 +0200 Subject: [PATCH] lcd4l: small addition to 2799c259fb64d553754df2f4821a66f0e2b66791 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/380abda0ca2746c8b61ffeeb33d6f05f3d9ba8bc Author: vanhofen Date: 2021-07-15 (Thu, 15 Jul 2021) Origin message was: ------------------ - lcd4l: small addition to 2799c259fb64d553754df2f4821a66f0e2b66791 ------------------ This commit was generated by Migit --- src/driver/lcd4l.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index bace04a96..f6c642f53 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -654,7 +654,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun) if (m_ModeCamd != ModeCamd) { - WriteFile(MODE_CAMD, ModeCamd); + WriteFile(MODE_CAMD, ModeCamd.empty() ? "off" : ModeCamd); m_ModeCamd = ModeCamd; }