Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed PowerControl
Fork of Projet_S5 by
Diff: mouvement.cpp
- Revision:
- 11:9c0786fc06b4
- Parent:
- 10:61b4d6c67dd7
- Child:
- 12:16390cea4420
--- a/mouvement.cpp Mon Apr 07 18:33:53 2014 +0000 +++ b/mouvement.cpp Tue Apr 08 13:46:22 2014 +0000 @@ -1,15 +1,13 @@ #include "mouvement.h" -Mouvement::Mouvement(int code, int code_envoie, string definition, Trame* trame) : +Mouvement::Mouvement(int code, int code_envoie, string definition) : _code(code), _code_envoie(code_envoie), - _definition(definition), - _trame(trame) + _definition(definition) { } - -void Mouvement::sendData() +void Mouvement::sendData(Trame *trame) { char code[4]; @@ -18,5 +16,5 @@ code[2] = (_code_envoie >> 8) & 0xFF; code[3] = _code_envoie & 0xFF; - _trame->sendTransmitRequest(0, code, sizeof(int)); + trame->sendTransmitRequest(0, code, sizeof(int)); }