changed to smart ptrs and trying to fix event_handler_tests
This commit is contained in:
@@ -42,9 +42,8 @@ void InputGPIOInterface::write_input_col(char data)
|
||||
}
|
||||
|
||||
|
||||
InputGPIOInterface::InputGPIOInterface(std::string matrix_config_path)
|
||||
InputGPIOInterface::InputGPIOInterface(std::istream& matrix_config_stream)
|
||||
{
|
||||
std::ifstream matrix_config_stream(matrix_config_path);
|
||||
json matrix_config;
|
||||
matrix_config_stream >> matrix_config;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
class InputGPIOInterface : public IInputGPIOInterface, GPIOInterface
|
||||
{
|
||||
public:
|
||||
InputGPIOInterface(std::string matrix_config_path);
|
||||
InputGPIOInterface(std::istream& matrix_config_stream);
|
||||
bool read_input_data(char pin);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user