len_to_dlc make static (#23120)

pull/23123/head
Igor Biletskyy 2021-12-03 16:37:17 -08:00 committed by GitHub
parent 0dcdf9c30f
commit e294e1620e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);