我也不知道改了什么
This commit is contained in:
+4
-1
@@ -56,7 +56,10 @@ target_include_directories(wdl_resampler PUBLIC
|
|||||||
|
|
||||||
target_compile_options(wdl_resampler PRIVATE -fsigned-char)
|
target_compile_options(wdl_resampler PRIVATE -fsigned-char)
|
||||||
target_compile_options(ds5-bridge PRIVATE -fsigned-char)
|
target_compile_options(ds5-bridge PRIVATE -fsigned-char)
|
||||||
target_compile_definitions(ds5-bridge PRIVATE CYW43_LWIP=0)
|
target_compile_definitions(ds5-bridge PRIVATE
|
||||||
|
CYW43_LWIP=0
|
||||||
|
PICO_FLASH_ASSUME_CORE1_SAFE=1
|
||||||
|
)
|
||||||
|
|
||||||
pico_set_program_name(ds5-bridge "ds5-bridge")
|
pico_set_program_name(ds5-bridge "ds5-bridge")
|
||||||
pico_set_program_version(ds5-bridge "0.1")
|
pico_set_program_version(ds5-bridge "0.1")
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ void audio_loop() {
|
|||||||
// 1. 读取 USB 音频数据
|
// 1. 读取 USB 音频数据
|
||||||
if (!tud_audio_available()) return;
|
if (!tud_audio_available()) return;
|
||||||
|
|
||||||
int16_t raw[1024];
|
int16_t raw[1024]; // 48000 / 3000 = 16, 64 * 16 = 1024
|
||||||
uint32_t bytes_read = tud_audio_read(raw, sizeof(raw));
|
uint32_t bytes_read = tud_audio_read(raw, sizeof(raw));
|
||||||
int frames = bytes_read / (INPUT_CHANNELS * sizeof(int16_t));
|
int frames = bytes_read / (INPUT_CHANNELS * sizeof(int16_t));
|
||||||
if (frames == 0){
|
if (frames == 0){
|
||||||
|
|||||||
+1
-3
@@ -16,7 +16,7 @@
|
|||||||
#include "pico/cyw43_arch.h"
|
#include "pico/cyw43_arch.h"
|
||||||
#include "pico/stdio.h"
|
#include "pico/stdio.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "pico/multicore.h"
|
#include "bsp/board_api.h"
|
||||||
#include "pico/sync.h"
|
#include "pico/sync.h"
|
||||||
#include "classic/sdp_server.h"
|
#include "classic/sdp_server.h"
|
||||||
|
|
||||||
@@ -238,9 +238,7 @@ static void hci_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p
|
|||||||
printf("[HCI] Authentication complete handle=0x%04X status=0x%02X\n", handle, status);
|
printf("[HCI] Authentication complete handle=0x%04X status=0x%02X\n", handle, status);
|
||||||
if (status != ERROR_CODE_SUCCESS) {
|
if (status != ERROR_CODE_SUCCESS) {
|
||||||
printf("[HCI] Authentication failed, drop stored key for %s\n", bd_addr_to_str(current_device_addr));
|
printf("[HCI] Authentication failed, drop stored key for %s\n", bd_addr_to_str(current_device_addr));
|
||||||
multicore_lockout_start_blocking();
|
|
||||||
gap_drop_link_key_for_bd_addr(current_device_addr);
|
gap_drop_link_key_for_bd_addr(current_device_addr);
|
||||||
multicore_lockout_end_blocking();
|
|
||||||
// gap_inquiry_start(30);
|
// gap_inquiry_start(30);
|
||||||
} else {
|
} else {
|
||||||
hci_send_cmd(&hci_set_connection_encryption, handle, 1);
|
hci_send_cmd(&hci_set_connection_encryption, handle, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user