浏览代码

Added command to turn LED indicators off while sleeping

IBNobody 9 年之前
父节点
当前提交
a70f439672
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tmk_core/common/avr/suspend.c

+ 4 - 1
tmk_core/common/avr/suspend.c

@@ -66,9 +66,12 @@ static void power_down(uint8_t wdto)
     wdt_intr_enable(wdto);
 
 #ifdef BACKLIGHT_ENABLE
-backlight_set(0);
+	backlight_set(0);
 #endif
 
+	// Turn off LED indicators
+	led_set(0);
+
     // TODO: more power saving
     // See PicoPower application note
     // - I/O port input with pullup