summaryrefslogtreecommitdiff
path: root/table-fan/table-fan.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-13 19:58:57 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-13 19:58:57 +0200
commit7e4f02dd4e72e97b8f5335876142b5bd6179cee1 (patch)
tree1de7b3fb766a3e5b3a079d1c9e5b1435f0134325 /table-fan/table-fan.c
parentmove fan specific code seperate file (diff)
add average for fan tacho
Diffstat (limited to 'table-fan/table-fan.c')
-rw-r--r--table-fan/table-fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/table-fan/table-fan.c b/table-fan/table-fan.c
index e3c3842..1f0cf4f 100644
--- a/table-fan/table-fan.c
+++ b/table-fan/table-fan.c
@@ -38,8 +38,8 @@ void handle_cmd(uint8_t cmd)
case '+': fan_speed_inc();/* printf("pwm = %d\r\n", fan_speed_get()); */ break;
case '-': fan_speed_dec();/* printf("pwm = %d\r\n", fan_speed_get()); */ break;
case 'r': reset2bootloader(); break;
- default: return; // printf("error\r\n"); return;
}
+ printf("\rspeed: %5d rpm", fan_get_rpm());
}
int main(void)