Dean Lee
a896ef9680
util: remove unused functions ( #32372 )
...
cleanup
old-commit-hash: c063395312
2024-05-08 10:18:43 -07:00
Dean Lee
f1d7faf60d
util: safer ends_with ( #31943 )
...
* safer ends_with
* improve
old-commit-hash: d05c19b9f4
2024-03-26 10:56:02 -07:00
Dean Lee
4db56c1247
util.cc: remove duplidate #include ( #29632 )
...
remove duplidate #include
old-commit-hash: c6c6877263
2023-08-25 14:34:46 -07:00
Adeeb Shihadeh
6b2ffe9490
bump cereal ( #29561 )
...
old-commit-hash: e726505918
2023-08-23 13:42:37 -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: d8bda6feb4
2023-08-15 00:05:27 +02:00
Dean Lee
c622a4cac5
common/util: move function random_int to util ( #29388 )
...
old-commit-hash: 22bc06fdaa
2023-08-14 09:37:16 -07:00
Misophist
df4dbac04c
util: random_string is now more entropic ( #29312 )
...
* random_string now returns a significantly higher entropy random string
sizeof(char*) is going to be 8 on a 64-bit system, not the length of the
string. Before, only strings of integer values [0-6] were being generated. Also
switched to C++ constructs for simplicity.
* Update common/util.cc
* maintain repo style
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 4cad0a035d
2023-08-11 03:46:47 -07:00
Adeeb Shihadeh
4ab84b5dc1
thermald: common min date ( #28457 )
...
* thermald: common min date
* add to release files
old-commit-hash: d96361970b
2023-06-12 13:50:38 -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: b43a875ba2
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: 10a1b8b7b1
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: 0d8254e959
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: 8ba9a5107b
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: 8dbb25e683
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: cb8885cffb
2022-05-18 14:11:57 -07:00