add new ip ping for udp device
add new function start and stop bus
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user