raspi: remove unused code
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
efb9f7647d
commit
f13fb15ebb
|
@ -4,7 +4,6 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
|
@ -199,15 +198,3 @@ func (r *Adaptor) PWMPin(pin string) (raspiPWMPin *PWMPin, err error) {
|
|||
|
||||
return r.pwmPins[i], nil
|
||||
}
|
||||
|
||||
func (r *Adaptor) piBlaster(data string) (err error) {
|
||||
fi, err := sysfs.OpenFile("/dev/pi-blaster", os.O_WRONLY|os.O_APPEND, 0644)
|
||||
defer fi.Close()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
_, err = fi.WriteString(data)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue