Skip to content

Commit

Permalink
Disable GPS load switching on black pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
robbederks committed Sep 27, 2019
1 parent 078ee58 commit c4ac3d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions board/boards/black.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,15 @@ void black_set_esp_gps_mode(uint8_t mode) {
// GPS OFF
set_gpio_output(GPIOC, 14, 0);
set_gpio_output(GPIOC, 5, 0);
black_set_gps_load_switch(false);
break;
case ESP_GPS_ENABLED:
// GPS ON
set_gpio_output(GPIOC, 14, 1);
set_gpio_output(GPIOC, 5, 1);
black_set_gps_load_switch(true);
break;
case ESP_GPS_BOOTMODE:
set_gpio_output(GPIOC, 14, 1);
set_gpio_output(GPIOC, 5, 0);
black_set_gps_load_switch(true);
break;
default:
puts("Invalid ESP/GPS mode\n");
Expand Down Expand Up @@ -106,7 +103,7 @@ void black_set_can_mode(uint8_t mode){
// B12,B13: OBD mode
set_gpio_alternate(GPIOB, 12, GPIO_AF9_CAN2);
set_gpio_alternate(GPIOB, 13, GPIO_AF9_CAN2);
}
}
break;
default:
puts("Tried to set unsupported CAN mode: "); puth(mode); puts("\n");
Expand Down

0 comments on commit c4ac3d6

Please sign in to comment.