Skip to content

Commit

Permalink
Put serialosc init into module constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dewb committed Aug 2, 2023
1 parent 9517c40 commit ee9eda6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/core/LibAVR32Module.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "LibAVR32Module.hpp"
#include "SerialOscInterface.hpp"
#include "base64.h"
#include <string.h>

Expand All @@ -11,6 +12,10 @@ LibAVR32Module::LibAVR32Module(std::string firmwareName)
{
gridConnection = nullptr;

// make sure serialosc is fully initialized by the time
// the user needs to interact with it
SerialOscInterface::get();

dacOffsetVolts = 0.0007;
triggerHighThreshold = 2.21;
triggerLowThreshold = 0.8;
Expand Down

0 comments on commit ee9eda6

Please sign in to comment.