Skip to content

Commit

Permalink
Add timezone option into a tune menu (#653)
Browse files Browse the repository at this point in the history
* add timezone option into a tune menu

* changed default sound signals volume
  • Loading branch information
Chleba authored Jul 7, 2020
1 parent a6edee1 commit 9c2fd5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

const uint32_t Sound::durations[eSOUND_TYPE_count] = { 100, 500, 200, 500, 10, 50, 100, 800 };
const float Sound::frequencies[eSOUND_TYPE_count] = { 900.F, 600.F, 950.F, 999.F, 800.F, 500.F, 999.F, 950.F };
const float Sound::volumes[eSOUND_TYPE_count] = { Sound::volumeInit, Sound::volumeInit, Sound::volumeInit, Sound::volumeInit, 0.25F, 0.25F, Sound::volumeInit, Sound::volumeInit };
const float Sound::volumes[eSOUND_TYPE_count] = { Sound::volumeInit, Sound::volumeInit, Sound::volumeInit, Sound::volumeInit, 0.175F, 0.175F, Sound::volumeInit, Sound::volumeInit };

const eSOUND_TYPE Sound::onceTypes[5] = { eSOUND_TYPE_Start, eSOUND_TYPE_ButtonEcho, eSOUND_TYPE_StandardPrompt, eSOUND_TYPE_CriticalAlert, eSOUND_TYPE_SingleBeep };
const eSOUND_TYPE Sound::loudTypes[6] = { eSOUND_TYPE_Start, eSOUND_TYPE_ButtonEcho, eSOUND_TYPE_StandardPrompt, eSOUND_TYPE_StandardAlert, eSOUND_TYPE_CriticalAlert, eSOUND_TYPE_SingleBeep };
Expand Down
2 changes: 1 addition & 1 deletion src/common/sound.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Sound {
uint32_t _delay; ///< live variable used for delay measure
uint32_t delay; ///< added variable for delay betwen beeps

static constexpr float volumeInit = 0.5F;
static constexpr float volumeInit = 0.35F;
/// values of sound signals - frequencies, volumes, durations
static const uint32_t durations[eSOUND_TYPE_count];
static const float frequencies[eSOUND_TYPE_count];
Expand Down
2 changes: 1 addition & 1 deletion src/gui/screen_menu_tune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/*****************************************************************************/
//parent alias
using parent = ScreenMenu<EHeader::Off, EFooter::On, HelpLines_None, MI_RETURN, MI_SPEED, MI_NOZZLE,
MI_HEATBED, MI_PRINTFAN, MI_FLOWFACT, MI_BABYSTEP, MI_M600, MI_SOUND_MODE, MI_LAN_SETTINGS, MI_VERSION_INFO,
MI_HEATBED, MI_PRINTFAN, MI_FLOWFACT, MI_BABYSTEP, MI_M600, MI_SOUND_MODE, MI_LAN_SETTINGS, MI_TIMEZONE, MI_VERSION_INFO,
#ifdef _DEBUG
MI_TEST,
#endif //_DEBUG
Expand Down

0 comments on commit 9c2fd5a

Please sign in to comment.