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
|
return smaller[1] + ratio * dy
|
||||||
|
|
||||||
def printf(fmt, *args, stream=sys.stderr):
|
def printf(fmt, *args, stream=sys.stderr):
|
||||||
print(fmt % args, file=stream)
|
print(fmt % args, file=stream, flush=True)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
|
@ -125,7 +125,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
if cfg.control.verbose:
|
if cfg.control.verbose:
|
||||||
printf("%.01f °C -> %d %% (%d/%d µs)",
|
printf("%.01f °C -> %d %% (%d/%d µs)",
|
||||||
temperature,
|
temperature / 1000,
|
||||||
percentage,
|
percentage,
|
||||||
p.duty_cycle // 1000,
|
p.duty_cycle // 1000,
|
||||||
p.period // 1000
|
p.period // 1000
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Description=Fand fan controller
|
Description=Fand fan controller
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/python3 /usr/lib/fand/fand.py
|
ExecStart=/usr/bin/python3 /usr/share/fand/fand.py
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=25
|
RestartSec=25
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue