diff options
Diffstat (limited to 'anzeige.c')
-rw-r--r-- | anzeige.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; /************************************************************************\ |