added states for tasks
This commit is contained in:
@ -86,6 +86,19 @@ string Drive::sPowerCyclesToText()
|
||||
return to_string(getPowerCycles());
|
||||
}
|
||||
|
||||
void Drive::setTaskPercentage(uint8_t u8TaskPercentage)
|
||||
{
|
||||
if((u8TaskPercentage >= 0) && (u8TaskPercentage <= 100))
|
||||
{
|
||||
this->u8TaskPercentage = u8TaskPercentage;
|
||||
}
|
||||
}
|
||||
uint8_t Drive::getTaskPercentage(void)
|
||||
{
|
||||
return this->u8TaskPercentage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief set S.M.A.R.T. values in model
|
||||
* \param string modelFamily
|
||||
|
Reference in New Issue
Block a user