Browse Source

clang-format without silly alignment

master
Alex Mikhalev 6 years ago
parent
commit
6965f03068
  1. 4
      .clang-format
  2. 2
      main/u8g2_esp32_hal.c
  3. 4
      main/ugv_io_gps.cc

4
.clang-format

@ -3,8 +3,8 @@ Language: Cpp
# BasedOnStyle: Google # BasedOnStyle: Google
AccessModifierOffset: -1 AccessModifierOffset: -1
AlignAfterOpenBracket: Align AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: true AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left AlignEscapedNewlines: Left
AlignOperands: true AlignOperands: true
AlignTrailingComments: true AlignTrailingComments: true

2
main/u8g2_esp32_hal.c

@ -2,8 +2,8 @@
#include <string.h> #include <string.h>
#include "esp_log.h" #include "esp_log.h"
#include "sdkconfig.h"
#include "i2c_mutex.h" #include "i2c_mutex.h"
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"

4
main/ugv_io_gps.cc

@ -167,8 +167,8 @@ void UART_GPS::ProcessLine(const char *line, size_t len) {
data_.pdop = minmea_tofloat(&gsa.pdop); data_.pdop = minmea_tofloat(&gsa.pdop);
data_.hdop = minmea_tofloat(&gsa.hdop); data_.hdop = minmea_tofloat(&gsa.hdop);
data_.vdop = minmea_tofloat(&gsa.vdop); data_.vdop = minmea_tofloat(&gsa.vdop);
ESP_LOGV(TAG, "GSA: pdop=%f, hdop=%f, vdop=%f", ESP_LOGV(TAG, "GSA: pdop=%f, hdop=%f, vdop=%f", data_.pdop, data_.hdop,
data_.pdop, data_.hdop, data_.vdop); data_.vdop);
xSemaphoreGive(mutex_); xSemaphoreGive(mutex_);
break; break;
} }

Loading…
Cancel
Save