Skip to content

Commit

Permalink
Appease the clang-format imp.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoh committed Feb 29, 2024
1 parent 6fbb009 commit a10213b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/furble.ino
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ static void remote_interval(Furble::Device *device) {
}

static void remote_control(Furble::Device *device) {

static bool shutter_lock = false;

Serial.println("Remote Control");
Expand All @@ -194,9 +193,9 @@ static void remote_control(Furble::Device *device) {
if (shutter_lock) {
// release shutter if either shutter or focus is pressed
if (M5.BtnA.wasClicked() || M5.BtnB.wasClicked()) {
shutter_lock = false;
device->shutterRelease();
Serial.println("shutterRelease(unlock)");
shutter_lock = false;
device->shutterRelease();
Serial.println("shutterRelease(unlock)");
}
} else {
if (M5.BtnA.wasPressed()) {
Expand All @@ -208,8 +207,8 @@ static void remote_control(Furble::Device *device) {
if (M5.BtnA.wasReleased()) {
// focus + shutter = shutter lock
if (M5.BtnB.isPressed()) {
shutter_lock = true;
Serial.println("shutter lock");
shutter_lock = true;
Serial.println("shutter lock");
} else {
device->shutterRelease();
Serial.println("shutterRelease()");
Expand Down

0 comments on commit a10213b

Please sign in to comment.