Merge pull request #4827 from lioncash/trunc

controller: Convert led_patterns integer literals to bool literals
This commit is contained in:
Rodrigo Locatti 2020-10-25 16:56:30 -03:00 committed by GitHub
commit 2f6ba54483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,15 +18,15 @@
namespace { namespace {
constexpr std::array<std::array<bool, 4>, 8> led_patterns = {{ constexpr std::array<std::array<bool, 4>, 8> led_patterns{{
{1, 0, 0, 0}, {true, false, false, false},
{1, 1, 0, 0}, {true, true, false, false},
{1, 1, 1, 0}, {true, true, true, false},
{1, 1, 1, 1}, {true, true, true, true},
{1, 0, 0, 1}, {true, false, false, true},
{1, 0, 1, 0}, {true, false, true, false},
{1, 0, 1, 1}, {true, false, true, true},
{0, 1, 1, 0}, {false, true, true, false},
}}; }};
void UpdateController(Settings::ControllerType controller_type, std::size_t npad_index, void UpdateController(Settings::ControllerType controller_type, std::size_t npad_index,