better fan speed measurement

This commit is contained in:
King Kévin 2013-10-13 19:40:39 +02:00
parent be4f8c64bb
commit e310bb4a85
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ int main(void)
if (prescale) {
uint32_t speed = ((60*F_CPU)/(prescale*(uint32_t)tachometer))/2;
printf("fan speed: %lurpm\n",speed);
printf("fan speed: %lurpm\n",timer2_ovf);
}
} else {
printf("fan off or too slow\n");