Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdcard: autotx fix bit in wrong position #113

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/vera/vera_spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ uint8_t debug_vera_spi_read(uint8_t reg)
{
switch (reg) {
case 0: return received_byte;
case 1: return busy << 7 | autotx << 3 | (ss ? 1 : 0);
case 1: return busy << 7 | autotx << 2 | (ss ? 1 : 0);
}
return 0;
}
Expand All @@ -68,7 +68,7 @@ uint8_t vera_spi_read(uint8_t reg)
}
return received_byte;
case 1:
return busy << 7 | autotx << 3 | (ss ? 1 : 0);
return busy << 7 | autotx << 2 | (ss ? 1 : 0);
}
return 0;
}
Expand All @@ -91,7 +91,7 @@ void vera_spi_write(uint8_t reg, uint8_t value)
sdcard_select(ss);
}
}
autotx = !!(value & 8);
autotx = !!(value & 4);
break;
}
}
Loading