diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-08-27 14:18:49 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-08-27 21:57:49 +0300 |
commit | bcdf9ab76bf3723e6015d4255d53e7c1e7259b61 (patch) | |
tree | 90bdb182315b96740da331c3d76c20187bef1f6f /quantum/serial_link/protocol/transport.c | |
parent | b3eba797af74ace19b9f2e762bdd33d9449e3f94 (diff) | |
download | firmware-bcdf9ab76bf3723e6015d4255d53e7c1e7259b61.tar.gz firmware-bcdf9ab76bf3723e6015d4255d53e7c1e7259b61.tar.bz2 firmware-bcdf9ab76bf3723e6015d4255d53e7c1e7259b61.zip |
Convert transport_tests to GTest
Diffstat (limited to 'quantum/serial_link/protocol/transport.c')
-rw-r--r-- | quantum/serial_link/protocol/transport.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/serial_link/protocol/transport.c b/quantum/serial_link/protocol/transport.c index f418d11ce..ff795fe20 100644 --- a/quantum/serial_link/protocol/transport.c +++ b/quantum/serial_link/protocol/transport.c @@ -31,6 +31,10 @@ SOFTWARE. static remote_object_t* remote_objects[MAX_REMOTE_OBJECTS]; static uint32_t num_remote_objects = 0; +void reinitialize_serial_link_transport(void) { + num_remote_objects = 0; +} + void add_remote_objects(remote_object_t** _remote_objects, uint32_t _num_remote_objects) { unsigned int i; for(i=0;i<_num_remote_objects;i++) { |