Skip to content

Commit 6d51138

Browse files
committed
upd
1 parent ad6db42 commit 6d51138

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ void loop() {
189189
- v1.7 - оптимизация, совместимость с ATtiny13
190190
- v1.8 - совместимость с ATmega32U4
191191
- v2.0 - оптимизация памяти, переделан sleepDelay, можно точно узнать фактическое время сна
192+
- v2.0.1 - fix compiler warnings
192193

193194
<a id="feedback"></a>
194195
## Баги и обратная связь

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=GyverPower
2-
version=2.0
2+
version=2.0.1
33
author=AlexGyver <[email protected]>
44
maintainer=AlexGyver <[email protected]>
55
sentence=Library for power management of AVR

src/GyverPower.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void GyverPower::autoCalibrate() {
7575
us16 = micros() - us;
7676
}
7777

78-
uint16_t GyverPower::getMaxTimeout(void) {}
78+
uint16_t GyverPower::getMaxTimeout(void) {return 8000;}
7979
void GyverPower::calibrate(uint16_t ms) { autoCalibrate(); }
8080

8181
// ===================== СОН =====================
@@ -93,7 +93,9 @@ void GyverPower::setSleepResolution(uint8_t prd) {
9393
}
9494

9595
uint8_t GyverPower::sleepDelay(uint32_t ms) {
96+
#ifdef MILLIS_CORRECT_IS_SUPPURT
9697
uint32_t saveMs = ms;
98+
#endif
9799
wakeFlag = false;
98100
fcount = 0;
99101
prepareSleep();

src/GyverPower.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
v1.7 - оптимизация, совместимость с ATtiny13
3939
v1.8 - совместимость с ATmega32U4
4040
v2.0 - оптимизация памяти, переделан sleepDelay, можно точно узнать фактическое время сна
41+
v2.0.1 - fix compiler warnings
4142
*/
4243

4344
#ifndef _GyverPower_h

0 commit comments

Comments
 (0)