Skip to content

Commit

Permalink
Fixes EspClass::deepSleep(64 bits) (#9077)
Browse files Browse the repository at this point in the history
* Fixes EspClass::deepSleep(64 bits)

This will change time in microseconds from 32 bits to 64 bits as defined in IDF.

* updates function declaration
  • Loading branch information
SuGlider committed Jan 8, 2024
1 parent b2e7338 commit 73dd8a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cores/esp32/Esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ unsigned long long operator"" _GB(unsigned long long x)

EspClass ESP;

void EspClass::deepSleep(uint32_t time_us)
void EspClass::deepSleep(uint64_t time_us)
{
esp_deep_sleep(time_us);
}
Expand Down
2 changes: 1 addition & 1 deletion cores/esp32/Esp.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class EspClass
const char * getSdkVersion(); //version of ESP-IDF
const char * getCoreVersion();//version of this core

void deepSleep(uint32_t time_us);
void deepSleep(uint64_t time_us);

uint32_t getFlashChipSize();
uint32_t getFlashChipSpeed();
Expand Down

0 comments on commit 73dd8a2

Please sign in to comment.