Commit 7e6ca871 authored by Oleg Nikulin's avatar Oleg Nikulin

PID регулятор оборотов вентилятора

parent bf58d042
......@@ -169,6 +169,13 @@ while True:
print('Fan RPMs: ' + rpm_str)
if args.manual: print('Enter the temperature value: ')
if 'debug' in incoming_line:
debug_pos = incoming_line.find('debug')
debug_str = incoming_line[debug_pos + 6:]
if args.manual: print()
print('debug: ' + debug_str)
if args.manual: print('Enter the temperature value: ')
except OSError:
if connected:
print('Serial divice was disconnected. Trying to reconnect...')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment