Skip to content

This is C++! #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CachedTile.h → src/CachedTile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
SPDX-License-Identifier: MIT
*/

#ifndef CACHED_TILE_H
#define CACHED_TILE_H
#ifndef CACHEDTILE_HPP_
#define CACHEDTILE_HPP_

#include <Arduino.h>
#include <freertos/semphr.h>
Expand Down
4 changes: 2 additions & 2 deletions src/HTTPClientRAII.h → src/HTTPClientRAII.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
SOFTWARE.
SPDX-License-Identifier: MIT
*/
#ifndef HTTPCLIENTRAII_H
#define HTTPCLIENTRAII_H
#ifndef HTTPCLIENTRAII_HPP_
#define HTTPCLIENTRAII_HPP_

#include <Arduino.h>
#include <HTTPClient.h>
Expand Down
2 changes: 1 addition & 1 deletion src/MemoryBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
SPDX-License-Identifier: MIT
*/

#include "MemoryBuffer.h"
#include "MemoryBuffer.hpp"
#include <Arduino.h>

MemoryBuffer::MemoryBuffer(size_t size) : size_(size)
Expand Down
4 changes: 2 additions & 2 deletions src/MemoryBuffer.h → src/MemoryBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
SPDX-License-Identifier: MIT
*/

#ifndef MEMORYBUFFER_H
#define MEMORYBUFFER_H
#ifndef MEMORYBUFFER_HPP_
#define MEMORYBUFFER_HPP_

#include <Arduino.h>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenStreetMap-esp32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
SPDX-License-Identifier: MIT
*/

#include "OpenStreetMap-esp32.h"
#include "OpenStreetMap-esp32.hpp"

OpenStreetMap::~OpenStreetMap()
{
Expand Down
14 changes: 7 additions & 7 deletions src/OpenStreetMap-esp32.h → src/OpenStreetMap-esp32.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
SPDX-License-Identifier: MIT
*/

#ifndef OPENSTREETMAP_ESP32_H
#define OPENSTREETMAP_ESP32_H
#ifndef OPENSTREETMAP_ESP32_HPP_
#define OPENSTREETMAP_ESP32_HPP_

#include <Arduino.h>
#include <WiFiClient.h>
Expand All @@ -33,11 +33,11 @@
#include <LovyanGFX.hpp>
#include <PNGdec.h>

#include "CachedTile.h"
#include "ScopedMutex.h"
#include "TileJob.h"
#include "MemoryBuffer.h"
#include "HTTPClientRAII.h"
#include "CachedTile.hpp"
#include "ScopedMutex.hpp"
#include "TileJob.hpp"
#include "MemoryBuffer.hpp"
#include "HTTPClientRAII.hpp"

constexpr uint16_t OSM_TILESIZE = 256;
constexpr uint16_t OSM_TILE_TIMEOUT_MS = 2500;
Expand Down
4 changes: 2 additions & 2 deletions src/ScopedMutex.h → src/ScopedMutex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
SOFTWARE.
SPDX-License-Identifier: MIT
*/
#ifndef SCOPEDMUTEX_H
#define SCOPEDMUTEX_H
#ifndef SCOPEDMUTEX_HPP_
#define SCOPEDMUTEX_HPP_

#include <Arduino.h>
#include <freertos/semphr.h>
Expand Down
6 changes: 3 additions & 3 deletions src/TileJob.h → src/TileJob.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
SPDX-License-Identifier: MIT
*/

#ifndef TILEJOB
#define TILEJOB
#ifndef TILEJOB_HPP_
#define TILEJOB_HPP_

#include "CachedTile.h"
#include "CachedTile.hpp"

struct TileJob
{
Expand Down