| 619 | } |
| 620 | |
| 621 | void AmsDataStorage::setMonthAccuracy(uint8_t accuracy) { |
| 622 | if(month.accuracy != accuracy) { |
| 623 | double multiplier = pow(10, month.accuracy)/pow(10, accuracy); |
| 624 | for(uint8_t i = 0; i < 31; i++) { |
| 625 | month.dImport[i] = month.dImport[i] * multiplier; |
| 626 | month.dExport[i] = month.dExport[i] * multiplier; |
| 627 | } |
| 628 | month.accuracy = accuracy; |
| 629 | } |
| 630 | month.accuracy = accuracy; |
| 631 | } |
| 632 | |
| 633 | bool AmsDataStorage::isHappy(time_t now) { |
| 634 | return isDayHappy(now) && isMonthHappy(now); |
nothing calls this directly
no outgoing calls
no test coverage detected