mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 19:42:07 +08:00
fix indentation (#19925)
old-commit-hash: 511bad6a9ffea248dce81631fb58b3d020a4117b
This commit is contained in:
@@ -249,11 +249,11 @@ void can_recv_thread() {
|
||||
uint64_t next_frame_time = nanos_since_boot() + dt;
|
||||
|
||||
while (!do_exit && panda->connected) {
|
||||
can_recv(pm);
|
||||
can_recv(pm);
|
||||
|
||||
uint64_t cur_time = nanos_since_boot();
|
||||
int64_t remaining = next_frame_time - cur_time;
|
||||
if (remaining > 0){
|
||||
if (remaining > 0) {
|
||||
std::this_thread::sleep_for(std::chrono::nanoseconds(remaining));
|
||||
} else {
|
||||
if (ignition){
|
||||
|
||||
@@ -330,7 +330,7 @@ int Panda::can_receive(kj::Array<capnp::word>& out_buf) {
|
||||
|
||||
// Not sure if this can happen
|
||||
if (recv < 0) recv = 0;
|
||||
|
||||
|
||||
if (recv == RECV_SIZE) {
|
||||
LOGW("Receive buffer full");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user