len_to_dlc make static (#23120)
parent
0dcdf9c30f
commit
e294e1620e
|
@ -352,7 +352,7 @@ void Panda::set_data_speed_kbps(uint16_t bus, uint16_t speed) {
|
|||
usb_write(0xf9, bus, (speed * 10));
|
||||
}
|
||||
|
||||
uint8_t Panda::len_to_dlc(uint8_t len) {
|
||||
static uint8_t len_to_dlc(uint8_t len) {
|
||||
if (len <= 8) {
|
||||
return len;
|
||||
}
|
||||
|
|
|
@ -112,7 +112,6 @@ class Panda {
|
|||
void send_heartbeat();
|
||||
void set_can_speed_kbps(uint16_t bus, uint16_t speed);
|
||||
void set_data_speed_kbps(uint16_t bus, uint16_t speed);
|
||||
uint8_t len_to_dlc(uint8_t len);
|
||||
void can_send(capnp::List<cereal::CanData>::Reader can_data_list);
|
||||
bool can_receive(std::vector<can_frame>& out_vec);
|
||||
|
||||
|
|
Loading…
Reference in New Issue