AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
pedal_config.cpp File Reference
#include "pedal_config.h"
#include "action.h"
#include "button_constants.h"
#include "config_loader.h"
#include "profile.h"
#include "send_action.h"
#include "serial_action.h"
#include <memory>

Go to the source code of this file.

Functions

bool configureProfiles (ProfileManager &profileManager, IBleKeyboard *keyboard)
 Load profiles from file; fall back to DEFAULT_CONFIG on failure.
 

Function Documentation

◆ configureProfiles()

bool configureProfiles ( ProfileManager profileManager,
IBleKeyboard keyboard 
)

Load profiles from file; fall back to DEFAULT_CONFIG on failure.

Loads pedal profiles from file, falling back to DEFAULT_CONFIG on failure.

Returns false only if DEFAULT_CONFIG itself fails to parse — which indicates a programming error and should never happen at runtime.

Definition at line 16 of file pedal_config.cpp.