Commit Graph

7 Commits

Author SHA1 Message Date
Warren Fernandes 44224746b4 Uses time.NewTimer() instead of time.After() to be more efficient.
- Makes tests more consistent
- Fixes halt test
- Asserts on returned error

Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 03:34:52 -06:00
Warren Fernandes 3f966dc125 Fixes AnalogSensor Halt Test
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 03:32:56 -06:00
Warren Fernandes 922e6d98f7 Uses NewTimer() instead of time.After() to be more
efficient since the later creates new timers in a
tight loop.

- Adds more assertions to tests
- Adds some comments to help contributors understand
that the send occurs after the Once.

Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 03:02:32 -06:00
deadprogram e30586acf0 core: Ensure that all drivers have default names
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-04 10:25:14 +02:00
deadprogram 07f674955b core: Ensure that all drivers have default names
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 19:06:37 +02:00
deadprogram 93772e1c37 core: Refactor GPIO drivers for new Driver creation signatures
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 13:36:18 +02:00
deadprogram ce773955b4 core: Move GPIO and I2C drivers into appropriately named 'drivers' directory
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 12:34:09 +02:00