Skip to content

Commit 3064c40

Browse files
authored
Revert "chore: update submodules (#121)" (#123)
This reverts commit 6eb1c4b.
1 parent 6eb1c4b commit 3064c40

File tree

17 files changed

+47
-47
lines changed

17 files changed

+47
-47
lines changed

amp-embedded-infra-lib

amp-hal-st

Submodule amp-hal-st updated 75 files

postmaster/flex/EchoWebSocketClientFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace application
4242
connection.Attach(webSocketConnection);
4343
webSocketConnection->Attach(echo.Emplace(serializerFactoryWebSocket));
4444

45-
listener.emplace(connectionFactory, 1234, services::SingleConnectionListener::Creators{ connectionCreator });
45+
listener.Emplace(connectionFactory, 1234, services::SingleConnectionListener::Creators{ connectionCreator });
4646
}
4747

4848
void EchoWebSocketClientFactory::WebSocketInitiationError(WebSocketClientObserverFactory::ConnectFailReason reason)

postmaster/flex/EchoWebSocketClientFactory.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ namespace application
3636
services::MethodSerializerFactory::OnHeap serializerFactoryListener;
3737
infra::SharedOptional<services::WebSocketClientConnectionObserver> webSocket;
3838
infra::SharedOptional<services::EchoOnConnection> echo;
39-
std::optional<services::SingleConnectionListener> listener;
40-
std::optional<services::EchoOnConnection> listenConnection;
39+
infra::Optional<services::SingleConnectionListener> listener;
40+
infra::Optional<services::EchoOnConnection> listenConnection;
4141

4242
infra::CreatorExternal<services::ConnectionObserver, void(services::IPAddress address)> connectionCreator{ [this](services::IPAddress address) -> services::ConnectionObserver&
4343
{
44-
listenConnection.emplace(serializerFactoryListener);
45-
forwarder1.emplace(*echo, *listenConnection);
46-
forwarder2.emplace(*listenConnection, *echo);
44+
listenConnection.Emplace(serializerFactoryListener);
45+
forwarder1.Emplace(*echo, *listenConnection);
46+
forwarder2.Emplace(*listenConnection, *echo);
4747
return *listenConnection;
4848
},
4949
[this]()
5050
{
51-
forwarder1 = std::nullopt;
52-
forwarder2 = std::nullopt;
53-
listenConnection = std::nullopt;
51+
forwarder1 = infra::none;
52+
forwarder2 = infra::none;
53+
listenConnection = infra::none;
5454
} };
5555

56-
std::optional<services::ServiceForwarderAll> forwarder1;
57-
std::optional<services::ServiceForwarderAll> forwarder2;
56+
infra::Optional<services::ServiceForwarderAll> forwarder1;
57+
infra::Optional<services::ServiceForwarderAll> forwarder2;
5858
};
5959
}
6060

postmaster/flex/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ int main(int argc, const char* argv[], const char* env[])
5757
static services::HttpClientConnectorWithNameResolverImpl<> connector(network.ConnectionFactoryWithNameResolver());
5858
static infra::BoundedString::WithStorage<512> httpUrl{ urlArg };
5959
static infra::BoundedString::WithStorage<512> webSocketUrl{ urlArg };
60-
static application::EchoWebSocketClientFactory webSocketFactory(webSocketUrl, services::PortFromUrl(webSocketUrl).value_or(80), network.ConnectionFactory(), tracer.tracer);
60+
static application::EchoWebSocketClientFactory webSocketFactory(webSocketUrl, services::PortFromUrl(webSocketUrl).ValueOr(80), network.ConnectionFactory(), tracer.tracer);
6161
static services::HttpClientWebSocketInitiation webSocketInitiation(webSocketFactory, connector,
6262
webSocketFactory, randomDataGenerator, services::noAutoConnect);
6363
static application::HttpClientAuthenticationDigest::WithMaxHeaders<10> clientAuthentication{ passwordArg, randomDataGenerator };
6464
static services::HttpClientAuthenticationConnector clientAuthenticationConnector{ connector, clientAuthentication };
65-
static application::FlexHttpClient httpClient(httpUrl, services::PortFromUrl(httpUrl).value_or(80), clientAuthenticationConnector, firmware, webSocketInitiation, tracer.tracer);
65+
static application::FlexHttpClient httpClient(httpUrl, services::PortFromUrl(httpUrl).ValueOr(80), clientAuthenticationConnector, firmware, webSocketInitiation, tracer.tracer);
6666

6767
network.ExecuteUntil([&]()
6868
{

postmaster/frontend/ReportingHttpServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ namespace application
1818
: SingleConnectionListener(connectionFactory, port, { connectionCreator })
1919
, reporter(reporter)
2020
, buffer(buffer)
21-
, connectionCreator([this](std::optional<ReportingHttpServerConnectionObserver>& value, services::IPAddress address)
21+
, connectionCreator([this](infra::Optional<ReportingHttpServerConnectionObserver>& value, services::IPAddress address)
2222
{
23-
value.emplace(this->buffer, *this, this->reporter, address);
23+
value.Emplace(this->buffer, *this, this->reporter, address);
2424
})
2525
{}
2626
}

postmaster/instantiations/EchoServer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ namespace main_
3030

3131
UartCreator& serialCreator;
3232

33-
infra::Creator<services::ConnectionObserver, Bridge, void(services::IPAddress address)> bridgeCreator{ [this](std::optional<Bridge>& value, services::IPAddress address)
33+
infra::Creator<services::ConnectionObserver, Bridge, void(services::IPAddress address)> bridgeCreator{ [this](infra::Optional<Bridge>& value, services::IPAddress address)
3434
{
35-
value.emplace(serialCreator);
35+
value.Emplace(serialCreator);
3636
} };
3737

3838
services::SingleConnectionListener listener;

postmaster/instantiations/Mdns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace main_
77
, version{ Create<16>(version, "vs") }
88
, versionFull{ Create<19>(versionFull, "vf") }
99
, attributes{ Create<67>(attributes, "at") }
10-
, server(factory, multicast, hostname, "postmaster", "_tcp", std::make_optional(ipAddress), std::nullopt, 80, text)
10+
, server(factory, multicast, hostname, "postmaster", "_tcp", infra::MakeOptional(ipAddress), infra::none, 80, text)
1111
{}
1212

1313
template<std::size_t Size>

postmaster/instantiations/TargetProgrammer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace main_
2424
, stateCreator([this]() -> application::FirmwareReceptor&
2525
{
2626
really_assert(!state);
27-
state.emplace(
27+
state.Emplace(
2828
this->uartProgrammerCreator, [this]()
2929
{
3030
state->firmwareReceptorToFlash.FlashInitializationDone();
@@ -44,7 +44,7 @@ namespace main_
4444
// this as an event, other events are first handled
4545
infra::EventDispatcher::Instance().Schedule([this]()
4646
{
47-
state = std::nullopt;
47+
state = infra::none;
4848
});
4949
})
5050
{
@@ -91,7 +91,7 @@ namespace main_
9191

9292
application::FirmwareReceptorResetTarget receptorResetTarget;
9393
application::FirmwareReceptorReporting firmwareReceptorReporting;
94-
std::optional<State> state;
94+
infra::Optional<State> state;
9595
infra::CreatorExternal<application::FirmwareReceptor, void()> stateCreator;
9696
};
9797
}

0 commit comments

Comments
 (0)