Skip to content

Commit 45146dd

Browse files
committed
Fix GVRET only exposing CAN0
Changelog: fix
1 parent 1debe22 commit 45146dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CommProto/gvret/states/get_num_buses.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class get_num_buses : public fsm::state<uint8_t, Protocol, bool> {
2929
explicit get_num_buses(out::stream& host_out)
3030
: fsm::state<uint8_t, Protocol, bool>(GET_NUM_BUSES), out(host_out) {}
3131

32-
constexpr static uint8_t NUM_BUSES = 1; // TODO: get from config/build-config
3332
Protocol enter() override {
34-
out << GET_COMMAND << GET_NUM_BUSES << NUM_BUSES;
33+
uint8_t num_busses = can::get_num_busses();
34+
out << GET_COMMAND << GET_NUM_BUSES << num_busses;
3535
out.flush();
3636
return IDLE;
3737
}

0 commit comments

Comments
 (0)