Skip to content

Commit

Permalink
Fix RTC on non-uno boards (commaai#311)
Browse files Browse the repository at this point in the history
* Fan and IR at 0 when in power savings mode

* Initialise RTC for all boards, not only uno. Fixes hang while getting time from non-initialized RTCs
  • Loading branch information
robbederks authored Oct 31, 2019
1 parent 48d0d0c commit 933c757
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.5.7
v1.5.8
3 changes: 0 additions & 3 deletions board/boards/uno.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ void uno_init(void) {
// C8: FAN PWM aka TIM3_CH3
set_gpio_alternate(GPIOC, 8, GPIO_AF2_TIM3);

// Initialize RTC
rtc_init();

// Turn on GPS load switch.
uno_set_gps_load_switch(true);

Expand Down
3 changes: 3 additions & 0 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,9 @@ int main(void) {
// init board
current_board->init();

// Initialize RTC
rtc_init();

// panda has an FPU, let's use it!
enable_fpu();

Expand Down

0 comments on commit 933c757

Please sign in to comment.