fine adjustements

This commit is contained in:
Jonathan Wyss 2024-02-29 21:45:44 +01:00
parent 4b46c16539
commit e700be4981

4
main.c
View File

@ -88,9 +88,9 @@ int main (void)
} }
for(i=0;i<8;i++) for(i=0;i<8;i++)
{ {
for(i2=1;i2<=8;i2++) for(i2=1;i2<=4;i2++)
{ {
sample[i] = ((sample[i] + sample[i*8+i2])/2); sample[i] = ((sample[i] + sample[i*6+i2])/2);
} }
//avg written to sample[0..7] //avg written to sample[0..7]
//contains values scaled to int boundarys //contains values scaled to int boundarys