Thomas Kohler
d2b01b99e0
examples: fix missing checks of return values ( #1060 )
2024-02-11 15:34:50 +01:00
Thomas Kohler
7f78edefcd
lint(all): fix issues of errorlint etc ( #1037 )
2023-11-15 20:51:52 +01:00
Thomas Kohler
aee81436c9
lint(all): switch to 1.55.2 and adjust linter issues ( #1036 )
2023-11-12 14:17:02 +01:00
Thomas Kohler
002c75ce88
test(all): substitude assert.Nil by assert.NoError if useful ( #1016 )
2023-10-26 20:34:19 +02:00
Thomas Kohler
a4a8d1079c
build(style): switch to gofumpt and add linters ( #1009 )
2023-10-20 20:50:42 +02:00
Thomas Kohler
3039b2c7cb
test(all): switch to test package stretchr testify ( #1006 )
2023-10-20 10:27:09 +02:00
Thomas Kohler
f5d8d5c601
all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors ( #950 )
2023-06-12 19:51:25 +02:00
Thomas Kohler
865e724af0
Build(v2): revert move to v2 subfolder ( #932 )
...
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler
d908619462
Build(v2): fix usage by moving code to a v2 subfolder ( #927 )
2023-05-22 19:35:36 +02:00
Thomas Kohler
949392d8a7
Fix(core): Semantic Import Versioning for v2 ( #921 )
2023-05-20 14:25:21 +02:00
Thomas Kohler
bf98277e03
BUGFIX: stabilize firmata tests
2022-10-19 09:39:35 +02:00
deadprogram
ec2995974d
test: increase some timings to make tests a little less fragile
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-09-25 12:06:08 +02:00
Dmitry Lisin
88188d3ccb
Use go.mod friendly version of go.bug.st/serial library
2020-05-13 19:16:41 +02:00
deadprogram
eb3b166158
firmata: handle cases where out of sync data is read from serial port on first connecting
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-11-12 12:16:05 +01:00
deadprogram
d2e6c53ac9
firmata: correct problem where last analog pin(s) were being ignored from capabilities query
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-10-31 09:36:16 +01:00
deadprogram
c80ab8ea91
firmata: Sysex response events now being handled as expected
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
b945fdaf5a
firmata: expose WriteSysex to external callers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
4f97d01b34
firmata: cleanup error handling for connection code
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
ab7944b86b
firmata: improve connection code to use a proper timeout
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
202089f3a2
firmata: increase test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
c057909011
firmata: return connect errors to client
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
efee462c95
firmata: client tests don't need so many goroutines
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
3c4a4f6e0d
firmata: adjust client test timeout values
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
bfdb65ad16
firmata: refactoring firmata client
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram
959a406e7b
firmata: increase test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-04 19:58:38 +02:00
deadprogram
2742dbacc1
firmata: remove processing that might have been eating test events, increase test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-04 18:31:32 +02:00
deadprogram
078784eff1
firmata: avoid race condition on starting test
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-03 12:11:49 +02:00
deadprogram
39e7ec000d
firmata: increase timeout for test
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-25 12:04:36 +02:00
deadprogram
fe19c2f167
firmata: eliminate race conditions introduced by tests
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 21:13:55 +02:00
Marc-Antoine Ruel
50d5869808
Fix go test ./...
...
Make all examples to not be built by default by adding the build tag 'example'.
Some files were automatically reformatted by goimports upon saving.
2017-03-13 11:01:39 -04:00
deadprogram
b0a8bda83f
firmata: remove race conditions identified in Firmata client
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-08 15:33:52 +01:00
deadprogram
11473b96f4
firmata: add mutex to try to reduce spurious build errors
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 17:37:51 +01:00
deadprogram
953c3254e7
core: use canonical import domain of gobot.io for all code
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
Sebastien Binet
1b574b5d45
platforms/firmata/client: use io.ReadFull
...
This CL uses io.ReadFull to make sure exactly n bytes are read, and
correctly handle io.EOF and co.
Fixes #343 .
Signed-off-by: Sebastien Binet <seb.binet@gmail.com>
Conflicts:
platforms/firmata/client/client.go
2016-11-30 22:58:37 +01:00
deadprogram
9faf9eb52a
core: Use time.Sleep unless waiting for a timeout in a select
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-05 13:05:49 +01:00
deadprogram
23559830ea
update: Update tarm/goserial to tarm/serial
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 08:38:24 +02:00
deadprogram
3a60b33480
core: Add Unsubscribe() to eventer, now Once() works as expected
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram
9f8fd26221
core: Refactor tests to allow 'metal' development using Gobot adaptors/drivers.
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram
ef2f0bf203
core: Refactor tests to allow 'metal' development using Gobot adaptors/drivers.
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram
e15961348f
core: Continue refactoring to allow 'metal' development using Gobot libs.
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
Harley Laue
f8be611424
Fix a typo and update the doc comment for FirmataAdaptor.ServoConfig
...
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:23:14 -07:00
Harley Laue
dc1f750e3b
Add unit tests for ServoConfig
...
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:22:53 -07:00
Harley Laue
5086b2a0d5
Fix the ServoConfig byte order
...
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-21 00:41:12 -07:00
Damian Gryski
977c878a8b
Code cleanups suggested by gosimple
2016-07-13 09:32:22 -06:00
gmarik
e494b9fb99
Refactor to use `gobottest` test helpers
2016-02-22 00:33:58 -05:00
Matt Aimonetti
a129ff03fa
Update blink example due to API change
2015-10-07 23:35:22 -07:00
Adrian Zankich
a8fa365990
Make travis happy
2015-07-15 16:46:40 -07:00
Adrian Zankich
02a62d043a
Refactor firmata client library into seperate package
...
Green tests
Refactor tests to table driven
Refactor analog, digital and i2c
Fix tests
golint client package
Fix tests
Add ServoConfig
Rename query and i2c functions
Fix tests
Fix typo
2015-06-30 14:11:22 -07:00