Skip to content

Commit

Permalink
fix spi write sel
Browse files Browse the repository at this point in the history
  • Loading branch information
ligenxxxx committed May 15, 2024
1 parent b8895ac commit 34a1f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/dm6302.c
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ int DM6302_init(uint8_t freq, uint8_t bw) {

while (1) {
for (i = 0; i < 256; i++) {
SPI_Write(sel, 0x6, 0xFF0, i);
SPI_Write(0, 0x6, 0xFF0, i);
WAIT(1);
SPI_Read(0x6, 0xFF0, &r0, &r1);
if (r0 != i || r1 != i) {
Expand Down

0 comments on commit 34a1f00

Please sign in to comment.