Skip to content

Commit

Permalink
lol one more
Browse files Browse the repository at this point in the history
  • Loading branch information
KaitlynAnn99 committed Nov 25, 2024
1 parent 3bb9564 commit e886f3b
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion include/tiny_gea_packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enum {
/*!
* Macro for statically allocating a GEA3 packet with a given payload size. Payload size is set automatically.
*/
#define tiny_gea3_STATIC_ALLOC_PACKET(_name, _payloadLength) \
#define tiny_gea_STATIC_ALLOC_PACKET(_name, _payloadLength) \
static uint8_t _name##Storage[_payloadLength + tiny_gea_packet_overhead] = { 0, _payloadLength }; \
static tiny_gea_packet_t* const _name = (tiny_gea_packet_t*)_name##Storage

Expand Down
10 changes: 5 additions & 5 deletions test/tests/tiny_erd_client_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ TEST_GROUP(tiny_erd_client)

#define a_read_request_should_be_sent(request_id, address, erd) \
do { \
tiny_gea3_STATIC_ALLOC_PACKET(request, 4); \
tiny_gea_STATIC_ALLOC_PACKET(request, 4); \
request->source = endpoint_address; \
request->destination = address; \
request->payload[0] = tiny_gea3_erd_api_command_read_request; \
Expand All @@ -257,7 +257,7 @@ TEST_GROUP(tiny_erd_client)
#define a_write_request_should_be_sent(request_id, address, erd, data) \
do { \
if(sizeof(data) == 1) { \
tiny_gea3_STATIC_ALLOC_PACKET(request, 6); \
tiny_gea_STATIC_ALLOC_PACKET(request, 6); \
request->source = endpoint_address; \
request->destination = address; \
request->payload[0] = tiny_gea3_erd_api_command_write_request; \
Expand All @@ -269,7 +269,7 @@ TEST_GROUP(tiny_erd_client)
should_be_sent(request); \
} \
else { \
tiny_gea3_STATIC_ALLOC_PACKET(request, 7); \
tiny_gea_STATIC_ALLOC_PACKET(request, 7); \
request->source = endpoint_address; \
request->destination = address; \
request->payload[0] = tiny_gea3_erd_api_command_write_request; \
Expand All @@ -285,7 +285,7 @@ TEST_GROUP(tiny_erd_client)

#define a_subscribe_all_request_should_be_sent(request_id, address, retain) \
do { \
tiny_gea3_STATIC_ALLOC_PACKET(request, 3); \
tiny_gea_STATIC_ALLOC_PACKET(request, 3); \
request->source = endpoint_address; \
request->destination = address; \
request->payload[0] = tiny_gea3_erd_api_command_subscribe_all_request; \
Expand All @@ -296,7 +296,7 @@ TEST_GROUP(tiny_erd_client)

#define a_subscription_publication_acknowledgment_should_be_sent(request_id, address, context) \
do { \
tiny_gea3_STATIC_ALLOC_PACKET(request, 3); \
tiny_gea_STATIC_ALLOC_PACKET(request, 3); \
request->source = endpoint_address; \
request->destination = address; \
request->payload[0] = tiny_gea3_erd_api_command_publication_acknowledgment; \
Expand Down
Loading

0 comments on commit e886f3b

Please sign in to comment.