change SPI read/write log message to VERBOSE
This commit is contained in:
parent
22744026da
commit
95d6bef66b
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ uint8_t lora32_read_reg(lora32_cfg_t *lora, uint8_t address) {
|
||||||
|
|
||||||
ESP_ERROR_CHECK(spi_device_transmit(lora->spi, &t));
|
ESP_ERROR_CHECK(spi_device_transmit(lora->spi, &t));
|
||||||
|
|
||||||
ESP_LOGD(TAG, "<%2X<%2X", address, t.rx_data[1]);
|
ESP_LOGV(TAG, "<%2X<%2X", address, t.rx_data[1]);
|
||||||
|
|
||||||
return t.rx_data[1];
|
return t.rx_data[1];
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ void lora32_write_reg(lora32_cfg_t *lora, uint8_t address, uint8_t value) {
|
||||||
spi_transaction_t t;
|
spi_transaction_t t;
|
||||||
memset(&t, 0, sizeof(spi_transaction_t));
|
memset(&t, 0, sizeof(spi_transaction_t));
|
||||||
|
|
||||||
ESP_LOGD(TAG, ">%2X>%2X", address, value);
|
ESP_LOGV(TAG, ">%2X>%2X", address, value);
|
||||||
|
|
||||||
t.length = 16;
|
t.length = 16;
|
||||||
t.flags = SPI_TRANS_USE_TXDATA;
|
t.flags = SPI_TRANS_USE_TXDATA;
|
||||||
|
|
Loading…
Reference in a new issue