diff options
author | Erich Eckner <git@eckner.net> | 2018-10-23 08:43:53 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-23 08:43:53 +0200 |
commit | d93623e8562e0af1306412267cfcc1dac0bae5bb (patch) | |
tree | c268a9e5470777eb467e3f95305920494c296142 /anzeige.c | |
parent | add9011e40b097701762c9fc4282d8b305d7e5c2 (diff) | |
download | anzeige-d93623e8562e0af1306412267cfcc1dac0bae5bb.tar.xz |
input_gadgets: return values in char*
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; /************************************************************************\ |