common: Make Gps::update() access UART0's receive buffer via a closure.
authorTilman Sauerbeck <tilman@code-monkey.de>
Wed, 8 Jan 2020 17:30:19 +0000 (18:30 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 9 Jan 2020 14:19:36 +0000 (15:19 +0100)
commit2c21f04d5a34595ced62860d8273dec306f6a4d6
treeb5403047c20bbf2fbf054f97641e9c43b0ea561d
parent22de17136c8c5692e83d5d15ce09528d9afd3e13
common: Make Gps::update() access UART0's receive buffer via a closure.

This will allow us to write tests for Gps without providing a fake
implementation of the UART reader function in the test.
src/application/main.rs
src/common/gps.rs