boardd: more logging (#28051)

old-commit-hash: a93f74a846
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent 3141766751
commit 65df3f01d1
  1. 2
      selfdrive/boardd/panda.cc
  2. 3
      selfdrive/boardd/pandad.py

@ -13,9 +13,11 @@ Panda::Panda(std::string serial, uint32_t bus_offset) : bus_offset(bus_offset) {
// try USB first, then SPI
try {
handle = std::make_unique<PandaUsbHandle>(serial);
LOGW("conntected to %s over USB", serial.c_str());
} catch (std::exception &e) {
#ifndef __APPLE__
handle = std::make_unique<PandaSpiHandle>(serial);
LOGW("conntected to %s over SPI", serial.c_str());
#endif
}

@ -76,10 +76,13 @@ def panda_sort_cmp(a: Panda, b: Panda):
def main() -> NoReturn:
count = 0
first_run = True
params = Params()
while True:
count += 1
cloudlog.event("pandad.flash_and_connect", count=count)
try:
params.remove("PandaSignatures")

Loading…
Cancel
Save