From 60c2b982a30330bb7c9238f3a023449b306e4785 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 23 Nov 2022 23:54:02 +0100 Subject: [PATCH] slide: use proc_tools Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f7833b6bdd7e68983a7d09805e69ba9179fccc54 Author: vanhofen Date: 2022-11-23 (Wed, 23 Nov 2022) Origin message was: ------------------ - slide: use proc_tools ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/slide.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/driver/slide.cpp b/src/driver/slide.cpp index 40cc14804..a8db0b762 100644 --- a/src/driver/slide.cpp +++ b/src/driver/slide.cpp @@ -27,11 +27,12 @@ #include #include #include -#include +#include #include #include #include +#include #define MAX_HEIGHT 576 #define MAX_WIDTH 720 @@ -56,23 +57,6 @@ COSDSlider::~COSDSlider() StopSlide(); } -int COSDSlider::proc_put(const char *path, char *value, int len) -{ - int ret, ret2; - int pfd = open(path, O_WRONLY); - - if (pfd < 0) - return pfd; - - ret = write(pfd, value, len); - ret2 = close(pfd); - - if (ret2 < 0) - return ret2; - - return ret; -} - void COSDSlider::setValue(int val) { //printf("setvalue: %d\n",val);