Skip to content

Commit

Permalink
Updated reverser value based on updated gbm16t firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
eyip002 committed Aug 7, 2023
1 parent 9f39427 commit c192a65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/state/bidib_state_setter.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void bidib_state_vendor(t_bidib_node_address node_address, uint8_t length,
case '0':
reverser_state->data.state_value = BIDIB_REV_EXEC_STATE_OFF;
break;
case '1':
case '3':
reverser_state->data.state_value = BIDIB_REV_EXEC_STATE_ON;
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion test/unit/bidib_feedback_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static void feedback_reverser_state(void **state __attribute__((unused))) {
uint8_t name_len = 0x05;
uint8_t name[] = {'3', '0', '0', '5', '1'};
uint8_t value_len = 0x01;
uint8_t value[] = {'1'};
uint8_t value[] = {'3'};
const uint8_t seqnum = 0x0f;
const unsigned int action_id = 15;

Expand Down
4 changes: 2 additions & 2 deletions test/unit/bidib_state_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ static void test_setup(void) {
input_buffer[120] = 0x35;
input_buffer[121] = 0x31;
input_buffer[122] = 0x01;
input_buffer[123] = 0x31;
input_buffer[124] = 0x3E;
input_buffer[123] = 0x33;
input_buffer[124] = 0x82;
input_buffer[125] = BIDIB_PKT_MAGIC;
}

Expand Down

0 comments on commit c192a65

Please sign in to comment.