crime scene, do not cross

This commit is contained in:
Christian Kroll 2011-12-16 19:40:25 +00:00
parent 6286a3ed25
commit 83d8e3c0d8
1 changed files with 3 additions and 3 deletions

View File

@ -29,14 +29,14 @@ static signed char sin_i(unsigned char angle) {
if (angle < 16) {
index = angle;
} else if (angle < 32) {
index = 32 - angle;
index = 31 - angle;
} else if (angle < 48) {
index = angle - 32;
} else {
index = 64 - angle;
index = 63 - angle;
}
return (unsigned char)(PGM(sinus_table[index])) * (angle < 32 ? 1 : -1);
return (signed char)(PGM(sinus_table[index])) * (angle < 32 ? 1 : -1);
}