Skip to content

Commit 1b405a1

Browse files
committed
Swap map for unordered map
1 parent 14dbd99 commit 1b405a1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/ambient/ambient-sht30.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
#ifdef APB_AMBIENT_TEMPERATURE_SENSOR_SHT30
33

44
#include <SHT85.h>
5-
#include <map>
5+
#include <unordered_map>
66

77
namespace {
88
SHT30 sht = SHT30{APB_AMBIENT_TEMPERATURE_SENSOR_I2C_ADDRESS};
99
void logSHT30Error(const char *phase) {
10-
static const std::map<uint8_t, String> SHT_ERRORS {
10+
static const std::unordered_map<uint8_t, String> SHT_ERRORS {
1111
{ SHT_OK, "no error" },
1212
{ SHT_ERR_WRITECMD, "I2C write failed" },
1313
{ SHT_ERR_READBYTES, "I2C read failed" },

src/wifimanager.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <vector>
88
#include "settings.h"
99
#include <TaskSchedulerDeclarations.h>
10-
#include <map>
1110

1211
namespace APB {
1312
BETTER_ENUM(WifiManager_WiFi_Status, uint8_t, Idle, Connecting, Station, AccessPoint, Error)

0 commit comments

Comments
 (0)