fix build error
This commit is contained in:
@@ -92,6 +92,7 @@ unsigned g_mute_on_off_t0 = MUTE_OFF;
|
||||
|
||||
unsigned g_game_mode = 0;
|
||||
|
||||
#if USE_EX3D == 1
|
||||
static void ex3d_apply_boot_angles(void)
|
||||
{
|
||||
int apply_count = (NUM_USB_CHAN_OUT < 8) ? NUM_USB_CHAN_OUT : 8;
|
||||
@@ -103,6 +104,7 @@ static void ex3d_apply_boot_angles(void)
|
||||
debug_printf("ex3d_apply_boot_angles: %d, %d\n", EX3D_VAngle[i], EX3D_HAngle[i]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// On UserBufferManagement Tile (1)
|
||||
static unsigned frame_index = 0;
|
||||
@@ -1007,6 +1009,8 @@ void hid_button_task(chanend_t cc_mic_level, chanend_t c_hidRcvData, chanend_t c
|
||||
for (int i = 0; i < 8; ++i) {
|
||||
incoming_angles[i] = chan_in_word(cc_mic_level);
|
||||
}
|
||||
|
||||
#if USE_EX3D == 1
|
||||
if (g_runtime_angle_written) {
|
||||
// 改动原因:主机运行期已写入角度时,0xF9可能携带启动早期flash旧值;此处只消费通道数据但不覆盖当前角度。
|
||||
debug_printf("Boot sync ex3d angles ignored (runtime angle already written)\n");
|
||||
@@ -1023,6 +1027,7 @@ void hid_button_task(chanend_t cc_mic_level, chanend_t c_hidRcvData, chanend_t c
|
||||
}
|
||||
debug_printf("Boot sync ex3d angles loaded\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user