Skip to content

Commit

Permalink
Changed default values for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
robbederks committed Oct 25, 2019
1 parent a12a148 commit 1965817
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions board/boards/uno.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ void uno_init(void) {
// Turn on phone regulator
set_gpio_output(GPIOB, 4, 1);

// Initialize IR PWM and set to 0% for now
// Initialize IR PWM and set to 50% for now
set_gpio_alternate(GPIOB, 7, GPIO_AF2_TIM4);
pwm_init(TIM4, 2);
uno_set_ir_power(0U);
uno_set_ir_power(50U);

// Initialize fan and set to 10%
// Initialize fan and set to 20%
fan_init();
uno_set_fan_power(5U);
uno_set_fan_power(20U);

// Initialize harness
harness_init();
Expand Down
4 changes: 2 additions & 2 deletions board/power_saving.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void set_power_save_state(int state) {

// Switch IR and fan
// TODO: Remove powering these back up. Should be done on device
//current_board->set_ir_power(enable ? 50U : 0U);
current_board->set_fan_power(enable ? 5U : 0U);
current_board->set_ir_power(enable ? 50U : 0U);
current_board->set_fan_power(enable ? 20U : 0U);

power_save_status = state;
}
Expand Down

0 comments on commit 1965817

Please sign in to comment.