feat: Squash all min-features into full

This commit is contained in:
Rick Lan
2025-09-05 11:07:32 +08:00
parent 028b6e5664
commit 5e0f34905d
75 changed files with 4041 additions and 83 deletions
+5
View File
@@ -18,6 +18,11 @@ void detect_board_type(void) {
if (!detect_with_pull(GPIOB, 1, PULL_UP) && !detect_with_pull(GPIOB, 7, PULL_UP)) {
hw_type = HW_TYPE_DOS;
current_board = &board_dos;
// rick - for Lite, it detected as UNO before 0.9.9
// Confirmed with mr. one, we are safe to do so for Lite
} else if(!detect_with_pull(GPIOB, 15, PULL_UP)) {
hw_type = HW_TYPE_DOS;
current_board = &board_dos;
}
// Return A13 to the alt mode to fix SWD
+3
View File
@@ -643,6 +643,9 @@ class Panda:
def get_type(self):
ret = self._handle.controlRead(Panda.REQUEST_IN, 0xc1, 0, 0, 0x40)
# rick - UNO to DOS for lite
if ret == bytearray(b'\x05'):
ret = bytearray(b'\x06')
# old bootstubs don't implement this endpoint, see comment in Panda.device
if self._bcd_hw_type is not None and (ret is None or len(ret) != 1):
ret = self._bcd_hw_type