Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Sep 4, 2024
1 parent 14ac2d2 commit 3fd9384
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions examples/weather/main/ArduinoJson.h
Original file line number Diff line number Diff line change
Expand Up @@ -4546,8 +4546,8 @@ struct BoundedReader<TSource*, typename enable_if<IsCharOrVoid<TSource>::value>:
public:
explicit BoundedReader(const void* ptr, size_t len)
: IteratorReader<const char*>(
reinterpret_cast<const char*>(ptr), reinterpret_cast<const char*>(ptr) + len
) {}
reinterpret_cast<const char*>(ptr), reinterpret_cast<const char*>(ptr) + len
) {}
};
template <typename TArray>
struct Reader<ElementProxy<TArray>, void> : Reader<char*, void> {
Expand Down
13 changes: 7 additions & 6 deletions examples/www-image/main/jpg-render.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,15 @@ static void http_post(void) {
* either in URL or as host and path parameters.
* FIX: Uncommenting cert_pem restarts even if providing the right certificate
*/
esp_http_client_config_t config = { .url = IMG_URL,
.event_handler = _http_event_handler,
.buffer_size = HTTP_RECEIVE_BUFFER_SIZE,
.disable_auto_redirect = false,
esp_http_client_config_t config
= {.url = IMG_URL,
.event_handler = _http_event_handler,
.buffer_size = HTTP_RECEIVE_BUFFER_SIZE,
.disable_auto_redirect = false,
#if VALIDATE_SSL_CERTIFICATE == true
.cert_pem = (char*)server_cert_pem_start
.cert_pem = (char*)server_cert_pem_start
#endif
};
};
esp_http_client_handle_t client = esp_http_client_init(&config);

#if DEBUG_VERBOSE
Expand Down
11 changes: 6 additions & 5 deletions examples/www-image/main/jpgdec-render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,14 @@ static void http_post(void) {
* NOTE: All the configuration parameters for http_client must be specified
* either in URL or as host and path parameters.
*/
esp_http_client_config_t config = { .url = IMG_URL,
esp_http_client_config_t config
= {.url = IMG_URL,
#if VALIDATE_SSL_CERTIFICATE == true
.cert_pem = (char*)server_cert_pem_start,
.cert_pem = (char*)server_cert_pem_start,
#endif
.disable_auto_redirect = false,
.event_handler = _http_event_handler,
.buffer_size = HTTP_RECEIVE_BUFFER_SIZE };
.disable_auto_redirect = false,
.event_handler = _http_event_handler,
.buffer_size = HTTP_RECEIVE_BUFFER_SIZE };

esp_http_client_handle_t client = esp_http_client_init(&config);

Expand Down
5 changes: 2 additions & 3 deletions src/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ static inline int rounded_display_height() {
*
* don't inline for to ensure availability in tests.
*/
void __attribute__((noinline)) _epd_populate_line_mask(
uint8_t* line_mask, const uint8_t* dirty_columns, int mask_len
) {
void __attribute__((noinline))
_epd_populate_line_mask(uint8_t* line_mask, const uint8_t* dirty_columns, int mask_len) {
if (dirty_columns == NULL) {
memset(line_mask, 0xFF, mask_len);
} else {
Expand Down

0 comments on commit 3fd9384

Please sign in to comment.