At least: font code generator, exchange code support for color 128x128
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Common {
|
||||
namespace Schedule {
|
||||
|
||||
template <uint32_t MAX_TASKS>
|
||||
class LowPowerTaskScheduler : public TaskScheduler {
|
||||
class LowPowerTaskScheduler final : public TaskScheduler {
|
||||
public:
|
||||
LowPowerTaskScheduler() :
|
||||
m_tasks(),
|
||||
@@ -44,7 +44,6 @@ public:
|
||||
{
|
||||
while (1) {
|
||||
cycle();
|
||||
//remove_dead_tasks();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,11 +127,16 @@ private:
|
||||
remove_dead_tasks();
|
||||
}
|
||||
|
||||
if (!execed && (next_time - time > Time::millis(2))) {
|
||||
// Common::ReturnCode rc = BSP::RtcDriver::set_wakeup_in(next_time - time);
|
||||
// if (rc == Common::ReturnCode::OK) {
|
||||
// BSP::LowPower::stop();
|
||||
// }
|
||||
if (m_task_count == 0) {
|
||||
Common::ReturnCode rc = BSP::RtcDriver::set_wakeup_in(Time::seconds(5));
|
||||
if (rc == Common::ReturnCode::OK) {
|
||||
BSP::LowPower::stop();
|
||||
}
|
||||
} else if (!execed && (next_time - time > Time::millis(2))) {
|
||||
Common::ReturnCode rc = BSP::RtcDriver::set_wakeup_in(next_time - time);
|
||||
if (rc == Common::ReturnCode::OK) {
|
||||
BSP::LowPower::stop();
|
||||
}
|
||||
}
|
||||
|
||||
m_cycle_count++;
|
||||
|
||||
Reference in New Issue
Block a user