fix namespace

This commit is contained in:
Gábor Poczkodi 2024-10-19 23:54:33 +02:00
parent 90c6eefc96
commit 00f436f33f
9 changed files with 18 additions and 18 deletions

View file

@ -4,7 +4,7 @@
#include "../si4713.h"
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
class AcompGainNumber : public number::Number, public Parented<Si4713Component> {
protected:
@ -150,5 +150,5 @@ class TunerPowerNumber : public number::Number, public Parented<Si4713Component>
}
};
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -5,7 +5,7 @@
#include "../si4713.h"
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
class BinaryOutput : public output::BinaryOutput, public Component, public Parented<Si4713Component> {
public:
@ -17,5 +17,5 @@ class BinaryOutput : public output::BinaryOutput, public Component, public Paren
uint8_t pin_{0};
};
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -4,7 +4,7 @@
#include "../si4713.h"
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
class AcompAttackSelect : public select::Select, public Parented<Si4713Component> {
protected:
@ -106,5 +106,5 @@ class RefClkSourceSelect : public select::Select, public Parented<Si4713Componen
}
};
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -5,7 +5,7 @@
#include <cmath>
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
// TODO: std::clamp isn't here yet
#define clamp(v, lo, hi) std::max(std::min(v, hi), lo)
@ -843,5 +843,5 @@ void Si4713Component::measure_freq(float value) {
// this->stc_wait(); // does not work, locks up, hmm
}
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -16,7 +16,7 @@
#include "si4713sub.h"
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
class Si4713Component : public PollingComponent, public i2c::I2CDevice {
std::string chip_id_;
@ -183,5 +183,5 @@ template<typename... Ts> class MeasureFrequencyAction : public Action<Ts...>, pu
void play(Ts... x) override { this->parent_->measure_freq(this->frequency_.value(x...)); }
};
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -1,7 +1,7 @@
#pragma once
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
static const float FREQ_MIN = 76;
static const float FREQ_MAX = 108;
@ -1284,5 +1284,5 @@ struct PropTxRdsFifoSize : PropBase {
}
};
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -1,7 +1,7 @@
#pragma once
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
#ifndef SUB_TEXT
#define SUB_TEXT(name) \
@ -53,5 +53,5 @@ namespace si4713 {
void publish_##name##_text_sensor() { this->publish(this->name##_text_sensor_, this->get_##name##_text_sensor()); } \
std::string get_##name##_text_sensor();
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -4,7 +4,7 @@
#include "../si4713.h"
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
class AcompEnableSwitch : public switch_::Switch, public Parented<Si4713Component> {
protected:
@ -99,5 +99,5 @@ class TunerEnableSwitch : public switch_::Switch, public Parented<Si4713Componen
}
};
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome

View file

@ -4,7 +4,7 @@
#include "../si4713.h"
namespace esphome {
namespace si4713 {
namespace si4713_i2c {
class RDSStationText : public text::Text, public Parented<Si4713Component> {
protected:
@ -22,5 +22,5 @@ class RDSTextText : public text::Text, public Parented<Si4713Component> {
}
};
} // namespace si4713
} // namespace si4713_i2c
} // namespace esphome