forked from eden-emu/eden
add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
This commit is contained in:
parent
ba774d82c7
commit
adcef452e0
101 changed files with 309 additions and 303 deletions
|
@ -131,7 +131,7 @@ DriverResult IrsProtocol::RequestImage(std::span<u8> buffer) {
|
|||
|
||||
DriverResult IrsProtocol::ConfigureIrs() {
|
||||
LOG_DEBUG(Input, "Configure IRS");
|
||||
constexpr std::size_t max_tries = 28;
|
||||
constexpr static std::size_t max_tries = 28;
|
||||
SubCommandResponse output{};
|
||||
std::size_t tries = 0;
|
||||
|
||||
|
@ -166,7 +166,7 @@ DriverResult IrsProtocol::ConfigureIrs() {
|
|||
DriverResult IrsProtocol::WriteRegistersStep1() {
|
||||
LOG_DEBUG(Input, "WriteRegistersStep1");
|
||||
DriverResult result{DriverResult::Success};
|
||||
constexpr std::size_t max_tries = 28;
|
||||
constexpr static std::size_t max_tries = 28;
|
||||
SubCommandResponse output{};
|
||||
std::size_t tries = 0;
|
||||
|
||||
|
@ -226,7 +226,7 @@ DriverResult IrsProtocol::WriteRegistersStep1() {
|
|||
|
||||
DriverResult IrsProtocol::WriteRegistersStep2() {
|
||||
LOG_DEBUG(Input, "WriteRegistersStep2");
|
||||
constexpr std::size_t max_tries = 28;
|
||||
constexpr static std::size_t max_tries = 28;
|
||||
SubCommandResponse output{};
|
||||
std::size_t tries = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue