Skip to content

Commit d37daee

Browse files
committedOct 1, 2019
Revert "NONE and CLIENT should be the same thing in white/grey pandas"
This reverts commit e97b283.
1 parent e97b283 commit d37daee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎board/boards/white.h

+4-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void white_set_led(uint8_t color, bool enabled) {
3434
break;
3535
case LED_BLUE:
3636
set_gpio_output(GPIOC, 6, !enabled);
37-
break;
37+
break;
3838
default:
3939
break;
4040
}
@@ -43,7 +43,6 @@ void white_set_led(uint8_t color, bool enabled) {
4343
void white_set_usb_power_mode(uint8_t mode){
4444
bool valid_mode = true;
4545
switch (mode) {
46-
case USB_POWER_NONE:
4746
case USB_POWER_CLIENT:
4847
// B2,A13: set client mode
4948
set_gpio_output(GPIOB, 2, 0);
@@ -126,7 +125,7 @@ void white_set_can_mode(uint8_t mode){
126125

127126
// A8,A15: normal CAN3 mode
128127
set_gpio_alternate(GPIOA, 8, GPIO_AF11_CAN3);
129-
set_gpio_alternate(GPIOA, 15, GPIO_AF11_CAN3);
128+
set_gpio_alternate(GPIOA, 15, GPIO_AF11_CAN3);
130129
break;
131130
case CAN_MODE_GMLAN_CAN3:
132131
// A8,A15: disable CAN3 mode
@@ -144,7 +143,7 @@ void white_set_can_mode(uint8_t mode){
144143
// B5,B6: normal CAN2 mode
145144
set_gpio_alternate(GPIOB, 5, GPIO_AF9_CAN2);
146145
set_gpio_alternate(GPIOB, 6, GPIO_AF9_CAN2);
147-
break;
146+
break;
148147
default:
149148
puts("Tried to set unsupported CAN mode: "); puth(mode); puts("\n");
150149
break;
@@ -311,4 +310,4 @@ const board board_white = {
311310
.set_can_mode = white_set_can_mode,
312311
.usb_power_mode_tick = white_usb_power_mode_tick,
313312
.check_ignition = white_check_ignition
314-
};
313+
};

0 commit comments

Comments
 (0)