Browse Source

Run clang-format again

ugv_io
Alex Mikhalev 6 years ago
parent
commit
1c5fbd725a
  1. 2
      main/sx127x_driver/sx127x_driver.h
  2. 4
      main/u8g2_esp32_hal.c
  3. 8
      main/ugv_main.c

2
main/sx127x_driver/sx127x_driver.h

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#pragma once
#include <driver/spi_master.h>
#include <driver/gpio.h>
#include <driver/spi_master.h>
#include <stdint.h>
#define SX127X_MAX_TRANSFER (256)

4
main/u8g2_esp32_hal.c

@ -242,9 +242,7 @@ uint8_t u8g2_esp32_gpio_and_delay_cb(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, @@ -242,9 +242,7 @@ uint8_t u8g2_esp32_gpio_and_delay_cb(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int,
break;
// Delay for the number of milliseconds passed in through arg_int.
case U8X8_MSG_DELAY_MILLI:
vTaskDelay(arg_int / portTICK_PERIOD_MS);
break;
case U8X8_MSG_DELAY_MILLI: vTaskDelay(arg_int / portTICK_PERIOD_MS); break;
}
return 0;
} // u8g2_esp32_gpio_and_delay_cb

8
main/ugv_main.c

@ -178,8 +178,12 @@ void loop(void) { @@ -178,8 +178,12 @@ void loop(void) {
u8g2_DrawStr(&u8g2, 4, 8 + 8, buf);
if (packet.buffer_len) {
ESP_LOGI(TAG, "lora received packet (len %d, rssi: %d, snr: %f): %s\n", packet.buffer_len, packet.rssi,
packet.snr, packet.buffer);
ESP_LOGI(TAG,
"lora received packet (len %d, rssi: %d, snr: %f): %s\n",
packet.buffer_len,
packet.rssi,
packet.snr,
packet.buffer);
u8g2_SetFont(&u8g2, u8g2_font_4x6_mf);
snprintf(buf, 40, "lora pkt(rssi: %d, snr: %f)", packet.rssi, packet.snr);
u8g2_DrawStr(&u8g2, 4, 8 + 8 + 8, buf);

Loading…
Cancel
Save