From 574ce355d8e513dbbf2cb0c932b27afc106ea993 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 Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/f671948d746acf3d7f620e9a211dd2e1d1ce3f00 Author: max_10 Date: 2017-12-04 (Mon, 04 Dec 2017) ------------------ No further description and justification available within origin commit message! ------------------ 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); }