summaryrefslogtreecommitdiff
path: root/anzeige.c
diff options
context:
space:
mode:
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;
/************************************************************************\