fix systemd service wrong path
fix minor mistakes in log output
This commit is contained in:
parent
d4a6f5924e
commit
b1eb93e575
2 changed files with 3 additions and 3 deletions
4
fand.py
4
fand.py
|
@ -107,7 +107,7 @@ def linlut(a, seq):
|
|||
return smaller[1] + ratio * dy
|
||||
|
||||
def printf(fmt, *args, stream=sys.stderr):
|
||||
print(fmt % args, file=stream)
|
||||
print(fmt % args, file=stream, flush=True)
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
|
@ -125,7 +125,7 @@ if __name__ == "__main__":
|
|||
|
||||
if cfg.control.verbose:
|
||||
printf("%.01f °C -> %d %% (%d/%d µs)",
|
||||
temperature,
|
||||
temperature / 1000,
|
||||
percentage,
|
||||
p.duty_cycle // 1000,
|
||||
p.period // 1000
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Description=Fand fan controller
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 /usr/lib/fand/fand.py
|
||||
ExecStart=/usr/bin/python3 /usr/share/fand/fand.py
|
||||
Restart=always
|
||||
RestartSec=25
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue