Commit Graph

10 Commits

Author SHA1 Message Date
Dean Lee
004a097c95 cpplint: add readability/braces filter (#29554)
old-commit-hash: 363740a497620249066522c87ddb03e1362749d4
2023-08-23 10:13:46 -07:00
Kacper Rączy
7f02996102 replay: increase file descriptor limit macOS (#29346)
* Increase file descriptor limit for replay on macos

* Reword comment

* Move set_file_descriptor_limit to common/util.cc

* Include resource.h header
old-commit-hash: d8bda6feb491f571acf476314ce7de81a431453f
2023-08-15 00:05:27 +02:00
Dean Lee
06cc9b5c7b util: fix typo in comment (#29392)
fix typo in comment
old-commit-hash: 37c3854623dc2df58469ac5d0b9e97375f57ca1f
2023-08-14 12:05:38 -07:00
Dean Lee
c622a4cac5 common/util: move function random_int to util (#29388)
old-commit-hash: 22bc06fdaab24b8aa3aba2513a32ae828f6d589e
2023-08-14 09:37:16 -07:00
Kacper Rączy
c4a75225e8 params: specify path using PARAMS_ROOT (#28257)
* Add PARAMS_ROOT env var

* Change getenv type signature

* Use getenv default_val
old-commit-hash: b43a875ba26685d7aa4eab3972c580810d5108d0
2023-05-23 19:02:22 +02:00
Dean Lee
3ff040d52c params: cleanup old params that aren't defined (#28017)
* delete files that are not defined in the keys

* assert after create file

* remove util::remove_files_in_dir

* cleanup

* fix up test

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 10a1b8b7b172420047fab5caa84829dd510e1e38
2023-05-04 11:21:41 -07:00
Dean Lee
725e0665df common: add new class OpenPilotPrefix (#26753)
* new class OpenPilotPrefix

* move random_string to util

* rename file

* style

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0d8254e95935f27d7c371ecc4c2d6c9ff8c204d0
2022-12-12 14:47:27 -08:00
Adeeb Shihadeh
461206de1c boardd: SPI support (#26374)
* spi handle

* put usb back

* handle eintr

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ba9a5107b353cc0fc5ab3bbab589b70c2fe9aaa
2022-11-08 13:21:07 -08:00
Dean Lee
389558776e params: remove all files if call clearAll with the ParamKeyType.ALL key. (#26000)
* remove all files in dir

* fix test case name
old-commit-hash: 8dbb25e683039e2cd393b574e0fdaa0c894b1104
2022-10-07 11:28:09 -07:00
Adeeb Shihadeh
f4675fc260 Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

* fix unit tests
old-commit-hash: cb8885cffb313bea258c012c3026461a22bf8135
2022-05-18 14:11:57 -07:00