diff options
Diffstat (limited to 'response.c')
-rw-r--r-- | response.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -136,9 +136,6 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data) GPollableOutputStream* stream = (GPollableOutputStream*)data->outStream; gchar* str = data->data; - - gchar* out = NULL; - g_strstrip(str); // I2C/LCD test functions - start @@ -148,10 +145,7 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data) // I2C/LCD test functions - stop // FIXME - Parser_main may generate multiple responses - Parser_main(str, &out, 1); - - data->cb(stream, out); + Parser_main(str, 1, data->cb, stream); - g_free(out); g_static_mutex_unlock (&mutex); } |