aboutsummaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/run.rs b/src/run.rs
index 2ec6889..02a6b25 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -95,6 +95,16 @@ pub async fn run(mut blocks: BlockManager) {
task::spawn(b);
}
+ // brightness task
+ if CONFIG.brightness.enabled {
+ let b = init_block(
+ tx.clone(),
+ brightness::get_brightness,
+ CONFIG.brightness.delay,
+ );
+ task::spawn(b);
+ }
+
// BTC task
if CONFIG.bitcoins.enabled {
let b = init_block(tx.clone(), bitcoins::get_price, CONFIG.bitcoins.delay);