Change indenting and rearrange audio.cpp

Only cosmetic changes. No functional changes.
This commit is contained in:
Scott Allen 2016-06-26 17:28:41 -04:00
parent c0f04bcb92
commit 2c023b30ef
1 changed files with 10 additions and 11 deletions

View File

@ -15,21 +15,16 @@ void ArduboyAudio::on()
audio_enabled = true;
}
bool ArduboyAudio::enabled()
{
return audio_enabled;
}
void ArduboyAudio::off()
{
audio_enabled = false;
// shut off audio pins
#ifdef ARDUBOY_10
#ifdef ARDUBOY_10
pinMode(PIN_SPEAKER_1, INPUT);
pinMode(PIN_SPEAKER_2, INPUT);
#else
#else
pinMode(PIN_SPEAKER_1, INPUT);
#endif
#endif
}
void ArduboyAudio::saveOnOff()
@ -43,3 +38,7 @@ void ArduboyAudio::begin()
on();
}
bool ArduboyAudio::enabled()
{
return audio_enabled;
}