percent are now two digit precision

This commit is contained in:
2020-08-28 15:28:57 +02:00
parent 320e306d06
commit b271f7955a
6 changed files with 36 additions and 30 deletions

View File

@ -34,7 +34,7 @@ private:
uint32_t u32PowerOnHours = 0U; //in hours
uint32_t u32PowerCycles = 0U;
uint8_t u8TaskPercentage = 0U; //in percent for Shred (1 to 100)
double d32TaskPercentage = 0U; //in percent for Shred (1 to 100)
protected:
@ -66,8 +66,8 @@ public:
string sPowerOnHoursToText();
string sPowerCyclesToText();
void setTaskPercentage(uint8_t u8TaskPercentage);
uint8_t getTaskPercentage(void);
void setTaskPercentage(double d32TaskPercentage);
double getTaskPercentage(void);
};