diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:54:26 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:54:26 -0500 |
commit | d47bc9182fbfd1b4c6bb22ecbc82ce16107a60b9 (patch) | |
tree | 8ee7fe6d0a9d68ccaf3f7d6e0a505b4ba5cfc78f /response.c | |
parent | 29a4d8cb5bfce50fcca89ac1b3949d59ca191768 (diff) |
keep i2c test code in
Diffstat (limited to 'response.c')
-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 |