mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-17 07:12:08 +08:00
boardd: more logging (#28051)
old-commit-hash: a93f74a846ff21e4538d00c921bdeabc44f85d0d
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user