core: Fix suspend/wake for converters #386
[tmk_keyboard.git] / tmk_core / common / avr / suspend.c
index 80243f02bc7448d8a6880afad9718bdff11af4fd..580d69e4f117f9e1ecf1f5bf2428abdf85482063 100644 (file)
@@ -85,6 +85,8 @@ void suspend_power_down(void)
     power_down(WDTO_15MS);
 }
 
     power_down(WDTO_15MS);
 }
 
+__attribute__ ((weak)) void matrix_power_up(void) {}
+__attribute__ ((weak)) void matrix_power_down(void) {}
 bool suspend_wakeup_condition(void)
 {
     matrix_power_up();
 bool suspend_wakeup_condition(void)
 {
     matrix_power_up();
@@ -100,6 +102,7 @@ bool suspend_wakeup_condition(void)
 void suspend_wakeup_init(void)
 {
     // clear keyboard state
 void suspend_wakeup_init(void)
 {
     // clear keyboard state
+    matrix_init();
     clear_keyboard();
 #ifdef BACKLIGHT_ENABLE
     backlight_init();
     clear_keyboard();
 #ifdef BACKLIGHT_ENABLE
     backlight_init();
Imprint / Impressum