Skip to content

Commit 0c5f221

Browse files
committed
Remove Unused Experimental Code
1 parent c77f755 commit 0c5f221

File tree

3 files changed

+0
-94
lines changed

3 files changed

+0
-94
lines changed

include/byteutils.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ uint32_t networkToUInt32(char* buf, int offset = 0);
3131
*/
3232
void floatToNetwork(float num, char* buf, int offset = 0);
3333

34-
/**
35-
* Encode a double to a buffer in Network Byte Order
36-
*/
37-
void doubleToNetwork(double num, char* buf, int offset = 0);
38-
3934
/**
4035
* Encode an Int16 to a buffer in Network Byte Order
4136
*/

include/encoder_period.pio.h

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/byteutils.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ void floatToNetwork(float num, char* buf, int offset) {
4949
buf[offset+3] = b[0];
5050
}
5151

52-
void doubleToNetwork(double num, char* buf, int offset) {
53-
unsigned char* b = (unsigned char *)#
54-
for(int i=0, j=sizeof(double)-1; i < sizeof(double); ++i, --j) {
55-
buf[offset+i] = b[j];
56-
}
57-
}
58-
5952
void int16ToNetwork(int16_t num, char* buf, int offset) {
6053
unsigned char b[2];
6154
memcpy(&b, &num, sizeof(num));

0 commit comments

Comments
 (0)