Skip to content

Commit 76a3492

Browse files
committed
move buzzer to connect ns
1 parent 89f7505 commit 76a3492

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

lib/Espfc/src/Buzzer.cpp renamed to lib/Espfc/src/Connect/Buzzer.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
#include "Buzzer.h"
1+
#include "Buzzer.hpp"
22
#include "Hal/Gpio.h"
33

44
namespace Espfc {
55

6+
namespace Connect {
7+
68
Buzzer::Buzzer(Model& model): _model(model), _status(BUZZER_STATUS_IDLE), _wait(0), _scheme(NULL), _e(BUZZER_SILENCE) {}
79

810
int Buzzer::begin()
@@ -145,3 +147,5 @@ const uint8_t** Buzzer::schemes()
145147
}
146148

147149
}
150+
151+
}

lib/Espfc/src/Buzzer.h renamed to lib/Espfc/src/Connect/Buzzer.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Espfc {
66

7+
namespace Connect {
8+
79
enum BuzzerPlayStatus
810
{
911
BUZZER_STATUS_IDLE,
@@ -35,3 +37,5 @@ class Buzzer
3537
};
3638

3739
}
40+
41+
}

lib/Espfc/src/Espfc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "SerialManager.h"
1111
#include "Output/Mixer.h"
1212
#include "Blackbox/Blackbox.h"
13-
#include "Buzzer.h"
13+
#include "Connect/Buzzer.hpp"
1414

1515
namespace Espfc {
1616

@@ -39,7 +39,7 @@ class Espfc
3939
SensorManager _sensor;
4040
Output::Mixer _mixer;
4141
Blackbox::Blackbox _blackbox;
42-
Buzzer _buzzer;
42+
Connect::Buzzer _buzzer;
4343
SerialManager _serial;
4444
uint32_t _loop_next;
4545
};

0 commit comments

Comments
 (0)