gefixte version 03122015
Dependencies: EthernetInterface mbed-rtos
Fork of Telemetrie_eth_h2m by
Revision 5:a96e4e59c710, committed 2015-11-22
- Comitter:
- HMFK03LST1
- Date:
- Sun Nov 22 14:18:03 2015 +0000
- Parent:
- 4:5881695ba67a
- Child:
- 6:abadad863420
- Commit message:
- CS to uint8
Changed in this revision
Telemetry.cpp | Show annotated file Show diff for this revision Revisions of this file |
Telemetry.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Telemetry.cpp Sun Nov 22 14:00:29 2015 +0000 +++ b/Telemetry.cpp Sun Nov 22 14:18:03 2015 +0000 @@ -115,7 +115,7 @@ /** Init Ethernet interface * ohne DHCP max. 2.5 Sekunden - * @ param IPAddress Interface IP + * @param IPAddress Interface IP */ bool Telemetry::InitEthernetConnection(const char* IPAddress, const char* SubNetMask, const char* GateWay) { @@ -237,10 +237,10 @@ //! Struct Check Sum calc -char Telemetry::do_cs(char* buffer) +uint8_t Telemetry::do_cs(char* buffer) { - char ck_a=0; - char ck_b=0; + uint8_t ck_a=0; + uint8_t ck_b=0; for(int i=0; i < (buffer[0]-1); i++) {
--- a/Telemetry.h Sun Nov 22 14:00:29 2015 +0000 +++ b/Telemetry.h Sun Nov 22 14:18:03 2015 +0000 @@ -52,7 +52,7 @@ //! IP Addess and Port of databank Server Endpoint db_server; - //! IP Addess and Port of controll Server + //! IP Addess and Port of control Server Endpoint controller; //! IP Addess and Port of incoming MSG @@ -95,7 +95,7 @@ //! Struct Check Sum calc - char do_cs(char* buffer); + uint8_t do_cs(char* buffer); //! Read UDP Packet int Rec_Data_UDP(char *buffer, int size);