From 2c023b30efbd99cffa36aeae4ddcb7bb4bc02549 Mon Sep 17 00:00:00 2001 From: Scott Allen Date: Sun, 26 Jun 2016 17:28:41 -0400 Subject: [PATCH] Change indenting and rearrange audio.cpp Only cosmetic changes. No functional changes. --- src/audio/audio.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/audio/audio.cpp b/src/audio/audio.cpp index b82d337..748af8e 100644 --- a/src/audio/audio.cpp +++ b/src/audio/audio.cpp @@ -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 - pinMode(PIN_SPEAKER_1, INPUT); - pinMode(PIN_SPEAKER_2, INPUT); - #else - pinMode(PIN_SPEAKER_1, INPUT); - #endif +#ifdef ARDUBOY_10 + pinMode(PIN_SPEAKER_1, INPUT); + pinMode(PIN_SPEAKER_2, INPUT); +#else + pinMode(PIN_SPEAKER_1, INPUT); +#endif } void ArduboyAudio::saveOnOff() @@ -43,3 +38,7 @@ void ArduboyAudio::begin() on(); } +bool ArduboyAudio::enabled() +{ + return audio_enabled; +}