diff --git a/src/rn2903/rn2903.c b/src/rn2903/rn2903.c index de93fb9a..f7d8ab03 100644 --- a/src/rn2903/rn2903.c +++ b/src/rn2903/rn2903.c @@ -996,7 +996,7 @@ RN2903_MAC_TX_STATUS_T rn2903_mac_tx(const rn2903_context dev, // if it's anything else, we failed :( printf("%s: unexpected response to mac tx command\n", __FUNCTION__); - return RN2903_JOIN_STATUS_UPM_ERROR; + return RN2903_MAC_TX_STATUS_UPM_ERROR; } RN2903_RESPONSE_T rn2903_radio_tx(const rn2903_context dev, @@ -1011,14 +1011,14 @@ RN2903_RESPONSE_T rn2903_radio_tx(const rn2903_context dev, if (!validate_hex_str(payload)) { printf("%s: payload is not a valid hex string\n", __FUNCTION__); - return RN2903_MAC_TX_STATUS_UPM_ERROR; + return RN2903_RESPONSE_UPM_ERROR; } // get the mac status and ensure that we are paused if (rn2903_update_mac_status(dev)) { printf("%s: rn2903_update_mac_status() failed\n", __FUNCTION__); - return RN2903_MAC_TX_STATUS_UPM_ERROR; + return RN2903_RESPONSE_UPM_ERROR; } uint16_t status = rn2903_get_mac_status_word(dev); @@ -1052,7 +1052,7 @@ RN2903_RESPONSE_T rn2903_radio_rx(const rn2903_context dev, if (rn2903_update_mac_status(dev)) { printf("%s: rn2903_update_mac_status() failed\n", __FUNCTION__); - return RN2903_MAC_TX_STATUS_UPM_ERROR; + return RN2903_RESPONSE_UPM_ERROR; } uint16_t status = rn2903_get_mac_status_word(dev); diff --git a/src/rn2903/rn2903.hpp b/src/rn2903/rn2903.hpp index 5fac702e..06cc9c98 100644 --- a/src/rn2903/rn2903.hpp +++ b/src/rn2903/rn2903.hpp @@ -47,7 +47,7 @@ namespace upm { * * @brief API for the Microchip RN2903 LoRa radio * - * Microchip’s RN2903 Low-Power Long Range LoRa Technology + * The Microchip RN2903 Low-Power Long Range LoRa Technology * Transceiver module provides an easy to use, low-power solution * for long range wireless data transmission. The advanced command * interface offers rapid time to market.