Skip to content

Commit 616f279

Browse files
committed
Slot counter approach
Former-commit-id: bf475c754634324063dbb5c587b82a4ca94e72a9 [formerly 8559b18ed3032aa39a5b348c5d8624a88628f754] Former-commit-id: 057de0de009d8573738889433dd17ba671eeb668
1 parent 7cd6f93 commit 616f279

6 files changed

+7
-7
lines changed

bufferflow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type BufferMsg struct {
1616
}
1717

1818
type Bufferflow interface {
19-
BlockUntilReady() bool // implement this method
19+
BlockUntilReady(cmd string) bool // implement this method
2020
OnIncomingData(data string) // implement this method
2121
BreakApartCommands(cmd string) []string // implement this method
2222
Pause() // implement this method

bufferflow_default.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (b *BufferflowDefault) Init() {
1818
log.Println("Initting default buffer flow (which means no buffering)")
1919
}
2020

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

bufferflow_dummypause.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type BufferflowDummypause struct {
1515
func (b *BufferflowDummypause) Init() {
1616
}
1717

18-
func (b *BufferflowDummypause) BlockUntilReady() bool {
18+
func (b *BufferflowDummypause) BlockUntilReady(cmd string) bool {
1919
log.Printf("BlockUntilReady() start. numLines:%v\n", b.NumLines)
2020
log.Printf("buffer:%v\n", b)
2121
//for b.Paused {

bufferflow_tinyg.go.REMOVED.git-id

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f80c1b8ea7dc18c7a37e992faf5d653fdeaf943d
1+
3df1f92ede27c318225cb710b8ac5e40be69f956

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version 1.4
1+
// Version 1.5
22
// Supports Windows, Linux, Mac, and Raspberry Pi, Beagle Bone Black
33

44
package main
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
var (
16-
version = "1.4"
16+
version = "1.5"
1717
addr = flag.String("addr", ":8989", "http service address")
1818
assets = flag.String("assets", defaultAssetPath(), "path to assets")
1919
//homeTempl *template.Template

serialport.go.REMOVED.git-id

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f0a0e31a9d17e0bcc75d4d962839324678347f89
1+
cd11e5314da2b8e5e3659cc4771cdcf7e58cbb5a

0 commit comments

Comments
 (0)