From 97ed1a86c8844f52f6307855c3ac637554811c1b Mon Sep 17 00:00:00 2001 From: max_10 Date: Mon, 4 Dec 2017 00:09:11 +0100 Subject: [PATCH] armbox: fix write value hex Signed-off-by: Thilo Graf ax needs hex Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/c0ef130e8e162a3e0b77d1ca62022fccea9ea732 Author: max_10 Date: 2017-12-04 (Mon, 04 Dec 2017) ------------------ This commit was generated by Migit --- libarmbox/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index f645dfc..1bf4a65 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -804,7 +804,7 @@ void cVideo::SetControl(int control, int value) { } if (p) { char buf[20]; - int len = snprintf(buf, sizeof(buf), "%d", value); + int len = snprintf(buf, sizeof(buf), "%x00\n", value); if (len < (int) sizeof(buf)) proc_put(p, buf, len); }