Skip to content

Commit a58f405

Browse files
committed
Version 1.7 with IDs and sendjson
Former-commit-id: ba61d3df0d6c33a61aa2aa0af71e7bdcae686fab [formerly 75a0dcc4f0a6181341e0c1e48410e566dc7e2266] Former-commit-id: 5702d3421495aa894136f1ece15fe0a2620c4359
1 parent 2e05a01 commit a58f405

9 files changed

+11
-11
lines changed

bufferflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type BufferMsg struct {
1616
}
1717

1818
type Bufferflow interface {
19-
BlockUntilReady(cmd string, id string) bool // implement this method
19+
BlockUntilReady(cmd string, id string) (bool, bool) // implement this method
2020
//JustQueue(cmd string, id string) bool // implement this method
2121
OnIncomingData(data string) // implement this method
2222
ClearOutSemaphore() // implement this method

bufferflow_default.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ func (b *BufferflowDefault) Init() {
1818
log.Println("Initting default buffer flow (which means no buffering)")
1919
}
2020

21-
func (b *BufferflowDefault) BlockUntilReady(cmd string, id string) bool {
21+
func (b *BufferflowDefault) BlockUntilReady(cmd string, id string) (bool, bool) {
2222
//log.Printf("BlockUntilReady() start\n")
23-
return true
23+
return true, false
2424
}
2525

2626
func (b *BufferflowDefault) OnIncomingData(data string) {

bufferflow_dummypause.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ type BufferflowDummypause struct {
1515
func (b *BufferflowDummypause) Init() {
1616
}
1717

18-
func (b *BufferflowDummypause) BlockUntilReady(cmd string, id string) bool {
18+
func (b *BufferflowDummypause) BlockUntilReady(cmd string, id string) (bool, bool) {
1919
log.Printf("BlockUntilReady() start. numLines:%v\n", b.NumLines)
2020
log.Printf("buffer:%v\n", b)
2121
//for b.Paused {
2222
log.Println("We are paused for 3 seconds. Yeilding send.")
2323
time.Sleep(3000 * time.Millisecond)
2424
//}
2525
log.Printf("BlockUntilReady() end\n")
26-
return true
26+
return true, false
2727
}
2828

2929
func (b *BufferflowDummypause) OnIncomingData(data string) {

bufferflow_grbl.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
307d46d66f254ab5c1c8b1f8ed29b4c9a8f3fbca
1+
4cda5be4c183f72b5e41b33015621aa839bc931f

bufferflow_tinyg.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
02b57c77bf5180132ca681cea0429d81fdb06d0e
1+
ca040c9d6b6e1743c8e71d251dedb419c0b54dc5

hub.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eb73b03bd2eeb82911409cbc82bf6fad2d901361
1+
b420a182db1f1a34cd42bc436dce78840cf0ab8b

main.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
37b8e99e5897f7c1fda929af9997c9ff9a78a06f
1+
f6ac111d794b21743dab1bf5371790b1be639d99

serial.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f5b2d4a727f069bc2e63da5ed3ae26c62c85fb0a
1+
be6abdc2e1bb47d9a1c05c8c9136a8a3d1c2cfb7

serialport.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3025b9ac6f925c64a5fc5403a63d12d8e468d0bc
1+
bad767991821ac316d077a2705dc2a51af74388b

0 commit comments

Comments
 (0)