From 10b1620354c3f1ffa37d44524fe2cf58b9d97c17 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/64b58ebe9288dcf7f7d787631c446b153737a672 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 8b1d708..51d67cd 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -876,7 +876,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); }