Reduced warnings and reduced debounce time
This commit is contained in:
@ -28,6 +28,7 @@ build_flags =
|
||||
-O3
|
||||
-Werror
|
||||
-Wall
|
||||
-Wno-unused-function
|
||||
-DUSER_SETUP_LOADED=1
|
||||
-DLOAD_GLCD=1
|
||||
-DLOAD_FONT2=1
|
||||
|
@ -62,7 +62,7 @@ void update()
|
||||
ButtonBack = 3
|
||||
};
|
||||
|
||||
constexpr auto debounceTime = 50;
|
||||
constexpr auto debounceTime = 25;
|
||||
|
||||
if (std::get<ButtonUp>(lastState) != std::get<ButtonUp>(state) && now-debounceUp > debounceTime)
|
||||
{
|
||||
|
@ -78,7 +78,7 @@ void update()
|
||||
ButtonBack = 2
|
||||
};
|
||||
|
||||
constexpr auto debounceTime = 50;
|
||||
constexpr auto debounceTime = 25;
|
||||
|
||||
if (std::get<ButtonUp>(lastState) != std::get<ButtonUp>(state) && now-debounceUp > debounceTime)
|
||||
{
|
||||
|
Reference in New Issue
Block a user