summaryrefslogtreecommitdiff
path: root/anzeige.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-23 08:43:53 +0200
committerErich Eckner <git@eckner.net>2018-10-23 08:43:53 +0200
commitd93623e8562e0af1306412267cfcc1dac0bae5bb (patch)
treec268a9e5470777eb467e3f95305920494c296142 /anzeige.c
parentadd9011e40b097701762c9fc4282d8b305d7e5c2 (diff)
downloadanzeige-d93623e8562e0af1306412267cfcc1dac0bae5bb.tar.xz
input_gadgets: return values in char*
Diffstat (limited to 'anzeige.c')
-rw-r--r--anzeige.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/anzeige.c b/anzeige.c
index bf4cacd..7e50547 100644
--- a/anzeige.c
+++ b/anzeige.c
@@ -20,6 +20,7 @@ int main(int argc, char **argv)
pthread_t thread_id;
t_display_data display_data;
int ret_val;
+ char *text_buffer;
// Set up gpi pointer for direct register access
ret_val = multiplexer_setup_root();
@@ -29,9 +30,11 @@ int main(int argc, char **argv)
// Drop root privileges
drop_privileges();
- ret_val = gadgets_retrieve_temperature();
+ ret_val = gadgets_retrieve_temperature(&text_buffer);
if (ret_val)
exit(ret_val);
+ printf("<<%s>>", text_buffer);
+ free(text_buffer);
return 0;
/************************************************************************\