boardd: more logging (#28051)

This commit is contained in:
Adeeb Shihadeh
2023-04-28 14:47:03 -07:00
committed by GitHub
parent 3617057c63
commit a93f74a846
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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
}
+3
View File
@@ -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")