Skip to content

Commit 7f48e1d

Browse files
authored
Merge pull request #1 from gigapod/develop
Pull in some casts that stop compiler warnings
2 parents e84bb35 + 6efb354 commit 7f48e1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/xbee_lr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ bool XBeeLRSetJoinRX1Delay(XBee* self, const uint32_t value) {
477477
uint8_t responseLength;
478478
uint8_t paramLength = sizeof(value);
479479

480-
int status = apiSendAtCommandAndGetResponse(self, AT_J1, &value, paramLength, response, &responseLength, 5000);
480+
int status = apiSendAtCommandAndGetResponse(self, AT_J1, (const uint8_t*)&value, paramLength, response, &responseLength, 5000);
481481

482482
if (status != API_SEND_SUCCESS) {
483483
XBEEDebugPrintEnabled("Failed to set Join RX1 Delay\n");
@@ -500,7 +500,7 @@ bool XBeeLRSetJoinRX2Delay(XBee* self, const uint32_t value) {
500500
uint8_t responseLength;
501501
uint8_t paramLength = sizeof(value);
502502

503-
int status = apiSendAtCommandAndGetResponse(self, AT_J2, &value, paramLength, response, &responseLength, 5000);
503+
int status = apiSendAtCommandAndGetResponse(self, AT_J2, (const uint8_t*)&value, paramLength, response, &responseLength, 5000);
504504

505505
if (status != API_SEND_SUCCESS) {
506506
XBEEDebugPrintEnabled("Failed to set Join RX2 Delay\n");
@@ -523,7 +523,7 @@ bool XBeeLRSetRX1Delay(XBee* self, const uint32_t value) {
523523
uint8_t responseLength;
524524
uint8_t paramLength = sizeof(value);
525525

526-
int status = apiSendAtCommandAndGetResponse(self, AT_D1, &value, paramLength, response, &responseLength, 5000);
526+
int status = apiSendAtCommandAndGetResponse(self, AT_D1, (const uint8_t*)&value, paramLength, response, &responseLength, 5000);
527527

528528
if (status != API_SEND_SUCCESS) {
529529
XBEEDebugPrintEnabled("Failed to set RX1 Delay\n");
@@ -546,7 +546,7 @@ bool XBeeLRSetRX2Delay(XBee* self, const uint32_t value) {
546546
uint8_t responseLength;
547547
uint8_t paramLength = sizeof(value);
548548

549-
int status = apiSendAtCommandAndGetResponse(self, AT_D2, &value, paramLength, response, &responseLength, 5000);
549+
int status = apiSendAtCommandAndGetResponse(self, AT_D2, (const uint8_t*)&value, paramLength, response, &responseLength, 5000);
550550

551551
if (status != API_SEND_SUCCESS) {
552552
XBEEDebugPrintEnabled("Failed to set RX2 Delay\n");

0 commit comments

Comments
 (0)