diff options
-rw-r--r-- | response.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -106,14 +106,14 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data) // remove leading and trailing whitespace g_strstrip (str); - guchar status = 0; // delete me, later - //I2C test code - FIXME - //I2C_Write (0x3b, 0xff); - //status = I2C_Read (0x3b); + guchar status = 0; // delete me, later - FIXME + I2C test code + I2C_Write (0x3b, 0xff); + status = I2C_Read (0x3b); // dummy response function gchar* upper = g_ascii_strup(str, len); - gchar *out_string = g_strdup_printf("%s\n%s\n%s\n%d\n",upper,upper,upper,status); + gchar *out_string = g_strdup_printf("%s\n%s\n%s\n%x\n",upper,upper,upper,status); gssize out_len = strlen (out_string); //send response back to client |