mirror of
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
synced 2026-03-10 01:56:57 +01:00
Merge pull request #203 from mistrjirka/t-watch-s3
Adding option to put the LoRa module to sleep
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user