diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-07-30 04:15:05 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-07-30 04:15:05 +0200 |
commit | 5b4d4b3400acdace76f5970849fcb7f9cefd2c4d (patch) | |
tree | aba62cb24bee0f6e81434602571791b1945a78fb /src/srp/fw-ec/led.diff.html |
Genesis commit
Not ready for release yet, but I need some commits for M4 to work
properly.
Diffstat (limited to 'src/srp/fw-ec/led.diff.html')
-rw-r--r-- | src/srp/fw-ec/led.diff.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/srp/fw-ec/led.diff.html b/src/srp/fw-ec/led.diff.html new file mode 100644 index 0000000..43f4e4f --- /dev/null +++ b/src/srp/fw-ec/led.diff.html @@ -0,0 +1,32 @@ +<code><span class="diff-meta">diff --git a/board/hx20/led.c b/board/hx20/led.c</span></code> +<code><span class="diff-meta">index a4dc4564e..dacf73fda 100644</span></code> +<code><span class="diff-meta">--- a/board/hx20/led.c</span></code> +<code><span class="diff-meta">+++ b/board/hx20/led.c</span></code> +<code><span class="diff-loc">@@ -283,22 +283,22 @@ static void led_set_power(void)</span></code> +<code> /* don't light up when at lid close */</code> +<code> if (!lid_is_open()) {</code> +<code> set_pwr_led_color(PWM_LED2, -1);</code> +<code><span class="diff-del">- enable_pwr_breath(PWM_LED2, EC_LED_COLOR_WHITE, breath_led_length, 0)</span>;</code> +<code><span class="diff-ins">+ enable_pwr_breath(PWM_LED2, EC_LED_COLOR_GREEN, breath_led_length, 0)</span>;</code> +<code> return;</code> +<code> }</code> +<code></code> +<code> if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND))</code> +<code><span class="diff-del">- enable_pwr_breath(PWM_LED2, EC_LED_COLOR_WHITE, breath_led_length, 1)</span>;</code> +<code><span class="diff-ins">+ enable_pwr_breath(PWM_LED2, EC_LED_COLOR_GREEN, breath_led_length, 1)</span>;</code> +<code> else</code> +<code><span class="diff-del">- enable_pwr_breath(PWM_LED2, EC_LED_COLOR_WHITE, breath_led_length, 0)</span>;</code> +<code><span class="diff-ins">+ enable_pwr_breath(PWM_LED2, EC_LED_COLOR_GREEN, breath_led_length, 0)</span>;</code> +<code></code> +<code> if (chipset_in_state(CHIPSET_STATE_ON) | power_button_enable) {</code> +<code> if (charge_prevent_power_on(0))</code> +<code> set_pwr_led_color(PWM_LED2, (power_tick %</code> +<code> LED_TICKS_PER_CYCLE < LED_ON_TICKS) ?</code> +<code><span class="diff-del">- EC_LED_COLOR_WHITE : -1);</span></code> +<code><span class="diff-ins">+ EC_LED_COLOR_GREEN : -1);</span></code> +<code> else</code> +<code><span class="diff-del">- set_pwr_led_color(PWM_LED2, EC_LED_COLOR_WHITE);</span></code> +<code><span class="diff-ins">+ set_pwr_led_color(PWM_LED2, EC_LED_COLOR_GREEN);</span></code> +<code> } else</code> +<code> set_pwr_led_color(PWM_LED2, -1);</code> +<code> }</code> |