Revert "Try USBGadgetPin (#670)"

This reverts commit 75e82caf72.
pull/673/head
probonopd 11 months ago committed by GitHub
parent 75e82caf72
commit e493a9517c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      src/config.cpp

@ -22,7 +22,6 @@
//
#include "config.h"
#include "../Synth_Dexed/src/dexed.h"
#include <circle/gpiopin.h>
CConfig::CConfig (FATFS *pFileSystem)
: m_Properties ("minidexed.ini", pFileSystem)
@ -38,13 +37,6 @@ void CConfig::Load (void)
m_Properties.Load ();
m_bUSBGadgetMode = m_Properties.GetNumber ("USBGadget", 0) != 0;
unsigned usbGadgetPinNumber = m_Properties.GetNumber ("USBGadgetPin", 26); // Default to GPIO pin 26 if not specified
CGPIOPin usbGadgetPin(usbGadgetPinNumber, GPIOModeInputPullUp);
if (usbGadgetPin.Read() == 0) // If the pin is pulled down
{
m_bUSBGadgetMode = true;
}
m_SoundDevice = m_Properties.GetString ("SoundDevice", "pwm");

Loading…
Cancel
Save