From: Youngjae Cho Date: Wed, 18 Sep 2019 02:52:33 +0000 (+0900) Subject: Add support for voltage_now, voltage_average, temperature information X-Git-Tag: accepted/tizen/unified/20190919.065346^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d3732762f4b2c2a331bacf4c82c206a2454b32f;p=platform%2Fadaptation%2Femulator%2Fdevice-manager-plugin-emul.git Add support for voltage_now, voltage_average, temperature information Change-Id: I3a623dd4919354da3ea4fb0a0a023e773aaddeaf Signed-off-by: Youngjae Cho --- diff --git a/hw/battery/battery.c b/hw/battery/battery.c index 86923ee..184cee0 100644 --- a/hw/battery/battery.c +++ b/hw/battery/battery.c @@ -230,6 +230,16 @@ static int battery_get_current_state( info.current_average = -1000; /* uA */ } + /* Since there are no nodes for + * voltage_now, voltage_average, temperature + * in the emulator, + * use values similar to TM1. + */ + info.voltage_now = 4000000; + info.voltage_average = 4000000; + + info.temperature = 300; + ret = get_power_source(info.online, &val); if (ret < 0) return ret;