blob: 0dbc69878bafe2312c3d5ae3fa62a739be7c6932 [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "libec/display_soc_command.h"
namespace ec {
double DisplayStateOfChargeCommand::CurrentPercentCharge() const {
return Resp()->display_soc / 10.0;
}
double DisplayStateOfChargeCommand::FullFactor() const {
return Resp()->full_factor / 1000.0;
}
double DisplayStateOfChargeCommand::ShutdownPercentCharge() const {
return Resp()->shutdown_soc / 10.0;
}
} // namespace ec