Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chilipeppr committed Jan 17, 2017
2 parents 88ec109 + c5e6f5c commit 6062ade
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Binaries for Download
You can now always check the Releases page on Github for the latest binaries.
https://github.com/chilipeppr/serial-port-json-server/releases

<!--
Version 1.88
Build date: Feb 15, 2016
Nodemcu buffer. Terminal commands. Cayenn protocol for IoT.
Expand All @@ -106,7 +107,6 @@ Latest TinyG buffer and firmware programmer.
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.86/serial-port-json-server-1.86_linux_arm.tar.gz">Beagle Bone Black (Linux ARMv7)</a>
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.86/serial-port-json-server-1.86_linux_amd64.tar.gz">Intel Edison (Linux x64)</a>
<!--
Version 1.83
Build date: July 19, 2015
Build has Arduino/Atmel Programmer built in and Marlin buffer support.
Expand All @@ -120,7 +120,6 @@ Please note: All TinyG and TinyG G2 users should use 1.83. All Grbl users on Lin
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.83/serial-port-json-server_linux_amd64.tar.gz">Linux x64</a>
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.83/serial-port-json-server_linux_arm.tar.gz">Raspberry Pi / Beagle Bone Black (Linux ARM)</a>
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.83/serial-port-json-server_linux_amd64.tar.gz">Intel Edison (Linux x64)</a>
-->
Version 1.80
Build date: Mar 8, 2015
Expand All @@ -137,7 +136,6 @@ Build has new garbage collection, "broadcast" tag, and "hostname" tag support.
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.80/serial-port-json-server_1.80_linux_armv8.tar.gz">Linux ARMv8 (AppliedMicro X-Gene)</a>
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.80/serial-port-json-server_linux_amd64.tar.gz">Intel Edison (Linux x64)</a>
<!--
Version 1.77
Build date: Feb 1, 2015
- <a class="list-group-item" href="http://chilipeppr.com/downloads/v1.77/serial-port-json-server_windows_386.zip">Windows x32</a>
Expand Down
6 changes: 4 additions & 2 deletions bufferflow_grbl.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func (b *BufferflowGrbl) Init() {
b.SetPaused(false, 1)

log.Println("Initting GRBL buffer flow")
b.BufferMax = 127 //max buffer size 127 bytes available
// b.BufferMax = 127 //max buffer size 127 bytes available
b.BufferMax = 125 // changed to be safe with extra chars

b.q = NewQueue()

Expand Down Expand Up @@ -293,7 +294,8 @@ func (b *BufferflowGrbl) SeeIfSpecificCommandsShouldSkipBuffer(cmd string) bool
// remove comments
//cmd = regexp.MustCompile("\\(.*?\\)").ReplaceAllString(cmd, "")
//cmd = regexp.MustCompile(";.*").ReplaceAllString(cmd, "")
if match, _ := regexp.MatchString("[!~\\?]|(\u0018)", cmd); match {
// adding some new regexp to match real-time commands for grbl 1 version
if match, _ := regexp.MatchString("[!~\\?]|(\u0018)|[\u0080-\u00FF]", cmd); match {
log.Printf("Found cmd that should skip buffer. cmd:%v\n", cmd)
return true
}
Expand Down

0 comments on commit 6062ade

Please sign in to comment.