Nathan Phillips 4 лет назад
Родитель
Сommit
2dd992e83e

+ 4 - 4
examples/common/example_common.c

@@ -85,7 +85,7 @@ void get_example_binaries(target_chip_t target, example_binaries_t *bins)
 
 #endif
 
-esp_loader_error_t connect_to_target(uint32_t higrer_baudrate)
+esp_loader_error_t connect_to_target(uint32_t higher_baudrate)
 {
     esp_loader_connect_args_t connect_config = ESP_LOADER_CONNECT_DEFAULT();
 
@@ -96,8 +96,8 @@ esp_loader_error_t connect_to_target(uint32_t higrer_baudrate)
     }
     printf("Connected to target\n");
 
-    if (higrer_baudrate && esp_loader_get_target() != ESP8266_CHIP) {
-        err = esp_loader_change_baudrate(higrer_baudrate);
+    if (higher_baudrate && esp_loader_get_target() != ESP8266_CHIP) {
+        err = esp_loader_change_baudrate(higher_baudrate);
         if (err == ESP_LOADER_ERROR_UNSUPPORTED_FUNC) {
             printf("ESP8266 does not support change baudrate command.");
             return err;
@@ -105,7 +105,7 @@ esp_loader_error_t connect_to_target(uint32_t higrer_baudrate)
             printf("Unable to change baud rate on target.");
             return err;
         } else {
-            err = loader_port_change_baudrate(higrer_baudrate);
+            err = loader_port_change_baudrate(higher_baudrate);
             if (err != ESP_LOADER_SUCCESS) {
                 printf("Unable to change baud rate.");
                 return err;

+ 1 - 1
examples/esp32_example/main/main.c

@@ -32,7 +32,7 @@ void app_main(void)
         .gpio0_trigger_pin = GPIO_NUM_26,
     };
 
-    if ( loader_port_esp32_init(&config) != ESP_LOADER_SUCCESS) {
+    if (loader_port_esp32_init(&config) != ESP_LOADER_SUCCESS) {
         ESP_LOGE("example", "serial initialization failed.");
         return;
     }

+ 1 - 1
private_include/serial_comm_prv.h

@@ -183,7 +183,7 @@ typedef struct __attribute__((packed))
     uint32_t sector_size;
     uint32_t page_size;
     uint32_t status_mask;
-} write_spi_command_t;  
+} write_spi_command_t;
 
 
 #ifdef __cplusplus

+ 1 - 1
src/serial_comm.c

@@ -56,7 +56,7 @@ static esp_loader_error_t SLIP_receive_data(uint8_t *buff, uint32_t size)
     uint8_t ch;
 
     for (int i = 0; i < size; i++) {
-        RETURN_ON_ERROR( serial_read(&ch, 1)) ;
+        RETURN_ON_ERROR( serial_read(&ch, 1) );
 
         if (ch == 0xDB) {
             RETURN_ON_ERROR( serial_read(&ch, 1) );