better fan speed measurement
This commit is contained in:
parent
be4f8c64bb
commit
e310bb4a85
|
@ -252,6 +252,7 @@ int main(void)
|
||||||
if (prescale) {
|
if (prescale) {
|
||||||
uint32_t speed = ((60*F_CPU)/(prescale*(uint32_t)tachometer))/2;
|
uint32_t speed = ((60*F_CPU)/(prescale*(uint32_t)tachometer))/2;
|
||||||
printf("fan speed: %lurpm\n",speed);
|
printf("fan speed: %lurpm\n",speed);
|
||||||
|
printf("fan speed: %lurpm\n",timer2_ovf);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("fan off or too slow\n");
|
printf("fan off or too slow\n");
|
||||||
|
|
Loading…
Reference in New Issue