diff options
author | Erich Eckner <git@eckner.net> | 2019-09-23 21:48:29 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-23 21:48:29 +0200 |
commit | 973ea982a7c50a53b6437c54505164f73ccfcc96 (patch) | |
tree | 438246b7f1cc05b401e1961f49d1dd66b8e4b2cd /anzeige.c | |
parent | a5a593c1b5cd60119f9b21c65640fffc0a765a0b (diff) | |
download | anzeige-973ea982a7c50a53b6437c54505164f73ccfcc96.tar.xz |
extract temperature and humidity binarily
Diffstat (limited to 'anzeige.c')
-rw-r--r-- | anzeige.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -85,6 +85,8 @@ int main(int argc, char **argv) text_buffer_end = text_buffer; + double temperature, humidity; + text_buffer_end = gadgets_retrieve_weather_warnings(text_buffer_end,text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end); if (text_buffer_end == NULL) { fprintf(stderr, "gadgets_retrieve_weather_warnings failed\n"); @@ -94,7 +96,7 @@ int main(int argc, char **argv) } if (text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end > 0) text_buffer_end += snprintf(text_buffer_end, text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end, "; "); - text_buffer_end = gadgets_retrieve_current_temperature(text_buffer_end,text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end); + text_buffer_end = gadgets_retrieve_current_temperature(text_buffer_end, text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end, &temperature, &humidity); if (text_buffer_end == NULL) { fprintf(stderr, "gadgets_retrieve_current_temperature failed\n"); free(text_buffer); |