Samples: max17048: added units to output
present sample output does not contain units. added units to sample output Signed-off-by: Rahul Goyal <goyalrahul1516@gmail.com>
This commit is contained in:
parent
f82249c932
commit
74c86928b2
@ -52,13 +52,13 @@ int main(void)
|
||||
if (ret < 0) {
|
||||
printk("Error: cannot get properties\n");
|
||||
} else {
|
||||
printk("Time to empty %d\n", vals[0].runtime_to_empty);
|
||||
printk("Time to empty %d minutes\n", vals[0].runtime_to_empty);
|
||||
|
||||
printk("Time to full %d\n", vals[1].runtime_to_full);
|
||||
printk("Time to full %d minutes\n", vals[1].runtime_to_full);
|
||||
|
||||
printk("Charge %d%%\n", vals[2].relative_state_of_charge);
|
||||
|
||||
printk("Voltage %d\n", vals[3].voltage);
|
||||
printk("Voltage %d\n uV", vals[3].voltage);
|
||||
}
|
||||
|
||||
k_sleep(K_MSEC(5000));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user