Skip to content

Commit

Permalink
Bad identification of Ingenic chips
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed May 31, 2024
1 parent e77f318 commit 33288a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hal/support.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ void hal_identify(void) {
case 0x21:
case 0x31:
plat = HAL_PLATFORM_TX;
strcpy(series, val == 0x21 ? "T21" :
val == 0x31 ? "T31" : "unknown");
strcpy(series,
((val >> 12) & 0xFF) == 0x21 ? "T21" :
((val >> 12) & 0xFF) == 0x31 ? "T31" :
"unknown");
chnCount = TX_VENC_CHN_NUM;
chnState = (hal_chnstate*)tx_state;
venc_thread = tx_video_thread;
Expand Down

0 comments on commit 33288a3

Please sign in to comment.