Skip to content

Commit 19b6a6f

Browse files
committed
Force rxm:0 on non Line Mode buffers
1 parent dbc3032 commit 19b6a6f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

bufferflow_tinyg.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ func (b *BufferflowTinyg) Init() {
238238

239239
//initialize query loop
240240
//b.rxQueryLoop(b.parent_serport)
241+
242+
go func() {
243+
time.Sleep(50 * time.Millisecond)
244+
spWriteJson("sendjson {\"P\":\"" + b.parent_serport.portConf.Name + "\",\"Data\":[{\"D\":\"" + "{\\\"rxm\\\":0}\\n\", \"Id\":\"internalInit0\"}]}")
245+
246+
}()
241247
}
242248

243249
// Serial buffer size approach

bufferflow_tinygg2.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ func (b *BufferflowTinygG2) Init() {
176176

177177
//initialize query loop
178178
//b.rxQueryLoop(b.parent_serport)
179+
180+
go func() {
181+
time.Sleep(50 * time.Millisecond)
182+
spWriteJson("sendjson {\"P\":\"" + b.parent_serport.portConf.Name + "\",\"Data\":[{\"D\":\"" + "{\\\"rxm\\\":0}\\n\", \"Id\":\"internalInit0\"}]}")
183+
}()
179184
}
180185

181186
// Serial buffer size approach

0 commit comments

Comments
 (0)