Skip to content

Commit

Permalink
Add MIT license header to uzlib wrapper and specify min platform version
Browse files Browse the repository at this point in the history
  • Loading branch information
ToMe25 committed Dec 23, 2023
1 parent aff8935 commit e25060c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ board_build.embed_files =
data/gzip/favicon.svg.gz

[env:esp32dev]
platform = espressif32
platform = espressif32@^6.4.0
board = esp32dev

[env:esp32dev_debug]
Expand Down
2 changes: 1 addition & 1 deletion src/AsyncTrackingFallbackWebHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* The MIT license can be found in the project root and at https://opensource.org/licenses/MIT.
*/

#include <AsyncTrackingFallbackWebHandler.h>
#include "AsyncTrackingFallbackWebHandler.h"
#if ENABLE_WEB_SERVER == 1
#if ENABLE_PROMETHEUS_SCRAPE_SUPPORT == 1 || ENABLE_PROMETHEUS_PUSH == 1
#include "prometheus.h"
Expand Down
1 change: 0 additions & 1 deletion src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
namespace utility {
/**
* A method to get the index of the Most Significant Bit set in a number.
* Necessary because the std log2 function doesn't exist on arm hosts.
*
* @param number The number to get the MSB for.
* @return The index of the Most Significant Bit set in the number.
Expand Down
5 changes: 4 additions & 1 deletion src/uzlib_gzip_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
* uzlib_gzip_wrapper.cpp
*
* Created on: May 26, 2023
* Author: ToMe25
*
* Copyright (C) 2023 ToMe25.
* This project is licensed under the MIT License.
* The MIT license can be found in the project root and at https://opensource.org/licenses/MIT.
*/

#include "uzlib_gzip_wrapper.h"
Expand Down
10 changes: 7 additions & 3 deletions src/uzlib_gzip_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
* uzlib_gzip_wrapper.h
*
* Created on: May 26, 2023
* Author: ToMe25
*
* Copyright (C) 2023 ToMe25.
* This project is licensed under the MIT License.
* The MIT license can be found in the project root and at https://opensource.org/licenses/MIT.
*/

#ifndef SRC_HTML_UZLIB_GZIP_WRAPPER_H_
Expand All @@ -24,7 +27,7 @@ class uzlib_gzip_wrapper {
/**
* A pointer to the first byte of compressed data.
*/
const uint8_t* const cmp_start;
const uint8_t *const cmp_start;

/**
* The number of already decompressed bytes.
Expand All @@ -43,7 +46,8 @@ class uzlib_gzip_wrapper {
* The range of valid values is from -8 to -15.
* Values outside of this range will be clamped to this range.
*/
uzlib_gzip_wrapper(const uint8_t *cmp_start, const uint8_t *cmp_end, int8_t wsize);
uzlib_gzip_wrapper(const uint8_t *cmp_start, const uint8_t *cmp_end,
int8_t wsize);

/**
* Destroys this gzip wrapper, and removes its internal memory buffer.
Expand Down

0 comments on commit e25060c

Please sign in to comment.