Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pkg/v2/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ type RemoteData struct {
// recreate a complete protobuf message from multiple chunks
// each new message is sent to handleData
func (c *Command) processData(read_size int, size_to_read int, buffer *[]byte, total_data *[]byte) int {

if read_size < size_to_read {
// not enough data
size_to_read -= read_size
Expand Down Expand Up @@ -154,6 +153,9 @@ func (c *Command) Connect() error {

c.sendConfiguration()

// wait for the device to be ready
time.Sleep(time.Millisecond * 500)

return nil
}

Expand Down