tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
170 stars 79 forks source link

Incorrect testing for mcu_busy in tbs6301_read_mac #187

Closed tvhdeeptho closed 4 years ago

tvhdeeptho commented 4 years ago

This code produces a compiler warning and is obviously wrong.

if((tmpbuf[0]&0x4) == 1) 

Two such lines occur and should be replaced by


if((tmpbuf[0]&0x4) == 0x4) 
`
tvhdeeptho commented 4 years ago

Path for this issue patch0.txt

crazycat69 commented 4 years ago

or just if(tmpbuf[0]&0x4)