Skip to content

Commit 4efc48b

Browse files
authored
Test (#20)
1 parent 26b037d commit 4efc48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Src/u_threads.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ void gpio_lights_thread(ULONG thread_input) {
138138

139139
switch (state) {
140140
case LIGHT_GREEN:
141-
HAL_GPIO_WritePin(GREEN_GPIO_Port, GREEN_Pin, GPIO_PIN_SET);
142141
HAL_GPIO_WritePin(RED_GPIO_Port, RED_Pin, GPIO_PIN_RESET);
142+
HAL_GPIO_WritePin(GREEN_GPIO_Port, GREEN_Pin, GPIO_PIN_SET);
143143
break;
144144
case LIGHT_RED:
145145
HAL_GPIO_WritePin(GREEN_GPIO_Port, GREEN_Pin, GPIO_PIN_RESET);

0 commit comments

Comments
 (0)