From 95b49fdf03b372be193b62a0578d097ee4edfdf4 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 16 Feb 2017 21:05:44 +0100 Subject: Fix peak levels to 0x7FFF to avoid alarms --- src/odr-sourcecompanion.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/odr-sourcecompanion.cpp b/src/odr-sourcecompanion.cpp index 0271f50..2fd2b78 100644 --- a/src/odr-sourcecompanion.cpp +++ b/src/odr-sourcecompanion.cpp @@ -398,6 +398,11 @@ int main(int argc, char *argv[]) } } } + + // TODO get level information from encoder. In the meantime, set to max value to avoid alarms. + peak_left = 0x7FFF; + peak_right = 0x7FFF; + read_bytes = numOutBytes; if (numOutBytes != 0) { -- cgit v1.2.3