16 lines
197 B
Go
16 lines
197 B
Go
package pcb
|
|
|
|
import (
|
|
"th7/data/config"
|
|
"th7/ports"
|
|
)
|
|
|
|
func NewAdapter(cfg config.Config) (ports.PCBPort, error) {
|
|
|
|
if cfg.Board.Debug {
|
|
return NewDummyAdapter()
|
|
}
|
|
|
|
return NewTH7Adapter()
|
|
}
|