Commit Graph
133 Commits
Author SHA1 Message Date
awalol f882ff1cf5 adjust default volume 2026-05-17 13:24:10 +08:00
awalol 77bbee565a fix: rumble transfer 2026-05-17 13:21:27 +08:00
awalol b3085456f5 add comment 2026-05-16 14:10:09 +08:00
awalol 508a84115e fix: DISABLE_SPEAKER_PROC option 2026-05-16 14:09:06 +08:00
awalolandGitHub 154e3a6355 Merge branch 'master' into refactor/state_mgr 2026-05-16 14:06:01 +08:00
awalolandGitHub 336d3d5822 Merge pull request #92 from awalol/feat/rssi
feat: Get Firmware Version and rssi
2026-05-16 13:58:39 +08:00
9e99d9fd3e typo
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-16 13:51:39 +08:00
9e2de40b9b Add bt_get_signal_strength Comment
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-16 13:51:29 +08:00
awalol 7d176f5034 fix: config_version valid check 2026-05-16 13:25:11 +08:00
awalol c2e0d8468d fix: state init after connected 2026-05-16 12:51:48 +08:00
awalol 7bbe37ba1c refactor: unified controller state by state_mgr 2026-05-15 20:07:12 +08:00
awalol 9a2c2b45e1 disable pico discoverable and connectable after connected 2026-05-14 23:26:29 +08:00
awalol 908bace5c4 feat(bt_rssi): add 0xf9 feature report to get bt rssi 2026-05-14 21:50:39 +08:00
awalol 58909831e1 feat: add 0xf8 feature report to get firmware version and add config version 2026-05-14 20:28:22 +08:00
awalolandGitHub 303a58b9c5 Merge pull request #85 from dereckhall/fix/inactivity-all-inputs
fix: extend inactivity detection to all primary inputs
2026-05-14 19:36:18 +08:00
dereckhall 4b4fc8fe1c fix: extend inactivity detection to all primary inputs
Upstream only checks left stick X axis, so pressing buttons, using
the d-pad, or moving the right stick won't prevent disconnection.

Extends the same dead zone pattern to cover both sticks (all 4 axes),
both button bytes, and d-pad/misc bytes.
2026-05-13 18:43:11 -04:00
awalolandGitHub 595a3e6b34 Merge pull request #83 from Summeli/master
bugfix: Pico W build.
2026-05-13 22:26:24 +08:00
Antti Pohjola 9cf52a0665 bugfix: Pico W build. 2026-05-13 14:04:56 +03:00
awalolandGitHub bbf50b09eb Merge pull request #68 from Summeli/master
Support for Rasberry Pi Pico W
2026-05-13 18:18:19 +08:00
awalolandGitHub b528fb49b2 Merge branch 'master' into master 2026-05-13 18:17:25 +08:00
Antti Pohjola 5e7da1779e feat: add DISABLE_SPEAKER_PROC build flag 2026-05-13 13:15:09 +03:00
Thierry Perrautandawalol e969aa6e2d feat: override disable_pico_led for low-battery blink
The low-battery indicator is critical info — keep blinking even when
the user has the LED disabled (Speaker mute toggle). Steady-state
LED still respects the flag: when battery recovers or charging
starts, the LED returns to off if the flag is set, otherwise to the
existing connected = solid-on state.

(cherry picked from commit 775346cd29d9a3c566309ec7d29db80f0b6979f1)
2026-05-13 18:09:32 +08:00
Thierry Perrautandawalol 63c62081eb feat: low-battery LED indicator (ENABLE_BATT_LED, default ON)
Blink the Pico onboard LED at 1 Hz when the connected DualSense
reports PowerPercent <= 1 (i.e. <= 10%) and PowerState == Discharging.
Source data is byte 52 of the BT 0x31 input report, already copied
into interrupt_in_data; no new BT parsing required.

The new module owns the LED only while it is actively blinking; it
detects controller disconnection via stale-report timeout and steps
out, so bt.cpp's existing connect/disconnect LED handling stays in
charge in all other states. Honors disable_pico_led.

Gated by -DENABLE_BATT_LED=ON (default). With the option off, the
source file is not compiled and behavior is identical to upstream.
CI gains a compile-only check for the OFF flavor.

(cherry picked from commit 2f8ea73c9fb695e24e7cc3329db7cb925e82e1c9)
2026-05-13 18:09:31 +08:00
awalol d3311a35d9 adjust l2cap mtu 2026-05-13 16:45:48 +08:00
462ddcb4c7 typo
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-13 16:19:09 +08:00
awalol 3a31bd75af refactor: add SetStateData and audio send priority 2026-05-13 16:19:08 +08:00
awalol 897beedeac fix: new pair
(cherry picked from commit 30e11f0f76fff6035fd36908662c87ba55abdef7)
2026-05-13 16:19:07 +08:00
awalol 9c668a73e4 fix: hid input stutter
(cherry picked from commit 3a179c74b325b9a8a9a54d6b4061c33a5be1b734)
2026-05-13 16:19:03 +08:00
julen 8960987156 fix: integer overflow when inactive_time exceeds 35
When the inactive_time configuration value exceeds 35, the expression
`get_config().inactive_time * 60 * 1000 * 1000`
overflows the maximum int value due to implicit integer conversion.
2026-05-10 12:59:33 +08:00
awalol 036a4a442b fix: ci build 2026-05-09 21:19:58 +08:00
awalol 43776c068d fix: SetStateData update 2026-05-09 21:16:24 +08:00
awalol 8f78259fa0 update ci enable log verbose 2026-05-09 14:32:40 +08:00
awalol ec2b1dbc12 clarify SetStateData func 2026-05-09 14:29:35 +08:00
awalol bb1c8f4a97 add Log Verbose option 2026-05-09 14:22:46 +08:00
awalol c45ceea535 optimize high frequency 0x02 SetStateData 2026-05-09 14:21:21 +08:00
awalol c323c14f19 rename haptics buf_len to audio buf_len 2026-05-09 13:20:46 +08:00
awalol 5d32bb6de9 haptics gain before resample 2026-05-08 23:57:11 +08:00
awalolandGitHub 1119d2f17a Merge pull request #44 from Demogorgon314/perf-bt-crc-hotpath
Replace runtime CRC32 table setup with a constexpr lookup table for faster output and feature report checksums
2026-05-08 20:30:16 +08:00
Kai 9ee59604f9 Optimize crc32 2026-05-08 19:58:34 +08:00
awalol 1014a13ed0 fix: controller auto mode 2026-05-08 19:31:24 +08:00
awalol f8f86a29ef fix: ENABLE_SERIAL conditional compilation 2026-05-08 17:37:53 +08:00
awalol ef0a261654 disable watchdog in debug firmware 2026-05-08 14:10:52 +08:00
awalol 2a6e0d0fd5 fix: ci build 2026-05-08 14:02:00 +08:00
awalol bc18d31613 fix: ci build 2026-05-08 13:57:39 +08:00
awalol be01dc439e add usb serial for debug firmware
Code by gpt5.5-xhigh
2026-05-08 13:54:07 +08:00
awalol b2b92959ca add cache for ci 2026-05-08 13:50:47 +08:00
awalol 6ded3361f9 auto switch ds mode 2026-05-07 23:00:19 +08:00
awalol 8bb0c816df 使用ds5原始的音量调节范围 2026-05-07 22:28:29 +08:00
awalol 33c44907b6 increase bt interrupt mtu 2026-05-07 20:28:08 +08:00
awalol e79c76276f remove usb serialnumber #32 2026-05-07 19:13:23 +08:00