Browse Source

cleanup and fix

feature-colorvalue2 3.4.0
Stian Fredrik Aune 3 years ago
parent
commit
5bd7a7f6b6
  1. 9
      .drone.yml
  2. 2
      cmd/lucy/tables.go
  3. 14
      cmd/mill/main.go

9
.drone.yml

@ -4,15 +4,6 @@ kind: pipeline
type: docker
steps:
- name: go-build
image: golang:1.17
commands:
- go test -v ./...
when:
event:
exclude:
- tag
- name: go-test
image: golang:1.17
commands:

2
cmd/lucy/tables.go

@ -44,7 +44,7 @@ func WriteDeviceStateTable(w io.Writer, devices []models.Device) {
temperatureString := ""
if v.HasCapability(models.DCTemperatureControl, models.DCTemperatureSensor) {
temperatureString = strconv.FormatFloat(v.State.Temperature, 'f', -1, 64)
temperatureString = fmt.Sprintf("%d", v.State.Temperature)
}
intensityString := ""

14
cmd/mill/main.go

@ -1,14 +0,0 @@
package main
import (
"crypto/rand"
"fmt"
"io"
)
func main() {
buf := make([]byte, 8)
_, _ = io.ReadFull(rand.Reader, buf)
fmt.Printf("%x", buf)
}
Loading…
Cancel
Save