add new ip ping for udp device

add new function start and stop bus
This commit is contained in:
Adrian Zürcher
2025-04-22 18:01:22 +02:00
parent 274e6acf0e
commit f5e66af3d8
4 changed files with 112 additions and 19 deletions

View File

@@ -1,7 +1,6 @@
package cfg
import (
"fmt"
"os"
"path"
@@ -51,7 +50,7 @@ func (c *Cfg) SaveCfg(data any) error {
func (c *Cfg) LoadCfg(data any) error {
p := path.Join(c.Dir, c.Name) + ".cfg"
if _, err := os.Stat(p); err != nil {
return fmt.Errorf("no configuration file: '%s' found", p)
return nil
}
b, err := os.ReadFile(p)