Skip to content

Commit 7f9caeb

Browse files
committed
Fix namespace in custom button example.
1 parent 6532295 commit 7f9caeb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/Advanced_CustomButton_Demo_01/CustomButton.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
The MIT License (MIT)
33
4-
Copyright (c) 2019 Lance A. Endres
4+
Copyright (c) 2021 Lance A. Endres
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy of
77
this software and associated documentation files (the "Software"), to deal in
@@ -45,14 +45,14 @@ CustomButton::LIGHTBEHAVIOR CustomButton::getBehavior()
4545
{
4646
// We want to blink the light for 1 second when the button is pressed and released.
4747
// In the ButtonSuite, this event returns the WASSHORTPRESSED.
48-
case WASSHORTPRESSED:
48+
case BUTTONSUITE::WASSHORTPRESSED:
4949
{
5050
return BLINKONCE;
5151
}
5252

5353
// We want to blink the light fastly as long as the button has been held down long
5454
// enough to be considered a long press and still is being held down.
55-
case ISLONGPRESSED:
55+
case BUTTONSUITE::ISLONGPRESSED:
5656
{
5757
return FASTBLINK;
5858
}

examples/Advanced_CustomButton_Demo_01/CustomButton.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
The MIT License (MIT)
33
4-
Copyright (c) 2019 Lance A. Endres
4+
Copyright (c) 2021 Lance A. Endres
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy of
77
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)