Merge pull request #203 from mistrjirka/t-watch-s3

Adding option to put the LoRa module to sleep
This commit is contained in:
Lewis He
2023-10-17 10:51:24 +08:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -530,6 +530,12 @@ void LilyGoLib::setSleepMode(SleepMode_t mode)
sleepMode = mode;
}
void LilyGoLib::sleepLora(bool config){
#ifdef USING_TWATCH_S3
SX126x::sleep(config);
#endif
}
void LilyGoLib::sleep(uint32_t second)
{
// SX126x::sleep();