Skip to content

Commit

Permalink
Make halls const
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehaenger committed Oct 22, 2024
1 parent 4135fa5 commit fe8e829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/LowLevel/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct ll_high_level_config llhl_config; // LL/HL configuration (is initialized
static_assert(sizeof(ConfigOptions) == 1, "Enlarging struct ConfigOption to a sizeof > 1 will break packet compatibilty");

// Hall input sources, same order as in ll_high_level_config.hall_configs
std::function<bool()> halls[MAX_HALL_INPUTS] = {
const std::function<bool()> halls[MAX_HALL_INPUTS] = {
[]() { return gpio_get(PIN_EMERGENCY_1); }, // OM-Hall-1 (default Lift1)
[]() { return gpio_get(PIN_EMERGENCY_2); }, // OM-Hall-2 (default Lift2)
[]() { return gpio_get(PIN_EMERGENCY_3); }, // OM-Hall-3 (default Stop1)
Expand Down

0 comments on commit fe8e829

Please sign in to comment.