|
|
|
@ -252,7 +252,7 @@ esp_err_t sx127x_read_lna_gain(sx127x_t *hndl, uint8_t *lna_gain) {
@@ -252,7 +252,7 @@ esp_err_t sx127x_read_lna_gain(sx127x_t *hndl, uint8_t *lna_gain) {
|
|
|
|
|
return ESP_OK; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
esp_err_t sx127x_write_fifo(sx127x_t *hndl, const char *data, size_t data_len) { |
|
|
|
|
esp_err_t sx127x_write_fifo(sx127x_t *hndl, const uint8_t *data, size_t data_len) { |
|
|
|
|
spi_transaction_t trans; |
|
|
|
|
memset(&trans, 0, sizeof(trans)); |
|
|
|
|
trans.flags = 0; |
|
|
|
@ -274,7 +274,7 @@ esp_err_t sx127x_write_fifo(sx127x_t *hndl, const char *data, size_t data_len) {
@@ -274,7 +274,7 @@ esp_err_t sx127x_write_fifo(sx127x_t *hndl, const char *data, size_t data_len) {
|
|
|
|
|
return ESP_OK; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
esp_err_t sx127x_read_fifo(sx127x_t *hndl, char *data_out, size_t data_len) { |
|
|
|
|
esp_err_t sx127x_read_fifo(sx127x_t *hndl, uint8_t *data_out, size_t data_len) { |
|
|
|
|
spi_transaction_t trans; |
|
|
|
|
memset(&trans, 0, sizeof(trans)); |
|
|
|
|
trans.flags = 0; |
|
|
|
|