Skip to content

Commit

Permalink
Fix read not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
raidoz committed Dec 20, 2021
1 parent 83fe047 commit 2fbdd3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cmd/deviceparameter/deviceparameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

const ApplicationVersionMajor = 0
const ApplicationVersionMinor = 3
const ApplicationVersionMinor = 4
const ApplicationVersionPatch = 0

var ApplicationBuildDate string
Expand Down Expand Up @@ -129,7 +129,7 @@ func parseValue(opts Options) ([]byte, bool, error) {
return nil, false, errors.New("Multiple values specified for parameter")
}

return value, true, err
return value, c > 0, err
}

type Options struct {
Expand Down
24 changes: 13 additions & 11 deletions cmd/deviceparameters/deviceparameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@

package main

import "fmt"
import "os"
import "log"
import "time"
import "os/signal"

import "github.com/jessevdk/go-flags"
import "github.com/proactivity-lab/go-loggers"
import "github.com/proactivity-lab/go-moteconnection"
import "github.com/thinnect/go-devparam/director"
import (
"fmt"
"log"
"os"
"os/signal"
"time"

"github.com/jessevdk/go-flags"
"github.com/proactivity-lab/go-loggers"
"github.com/proactivity-lab/go-moteconnection"
"github.com/thinnect/go-devparam/director"
)

const ApplicationVersionMajor = 0
const ApplicationVersionMinor = 3
const ApplicationVersionMinor = 4
const ApplicationVersionPatch = 0

var ApplicationBuildDate string
Expand Down

0 comments on commit 2fbdd3b

Please sign in to comment.