diff options
author | Richard Hughes <richard@hughsie.com> | 2008-11-07 10:40:11 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-11-07 10:40:11 +0000 |
commit | f5ea862a06a43c804fa23f289727132602c851b3 (patch) | |
tree | 6b2bb315f5e1946f61a4069da68272fca620a10a /src/dkp-wup.c | |
parent | 75e202c0977068d7c34565d64232760a42c1a0ce (diff) |
feature: add voltage property of a power device
Diffstat (limited to 'src/dkp-wup.c')
-rw-r--r-- | src/dkp-wup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dkp-wup.c b/src/dkp-wup.c index 6e958ce..a1ccace 100644 --- a/src/dkp-wup.c +++ b/src/dkp-wup.c @@ -325,7 +325,7 @@ dkp_wup_parse_command (DkpWup *wup, const gchar *data) /* update the command fields */ if (command == 'd' && subcommand == '-') { obj->energy_rate = strtod (tokens[offset+DKP_WUP_RESPONSE_HEADER_WATTS], NULL) / 10.0f; -// obj->volts = strtod (tokens[offset+DKP_WUP_RESPONSE_HEADER_VOLTS], NULL) / 10.0f; + obj->voltage = strtod (tokens[offset+DKP_WUP_RESPONSE_HEADER_VOLTS], NULL) / 10.0f; ret = TRUE; } else { egg_debug ("ignoring command '%c'", command); |