added states for tasks

This commit is contained in:
2020-08-09 21:41:28 +02:00
parent f4726bf08c
commit c2ab7c1c7f
6 changed files with 203 additions and 32 deletions

View File

@ -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