Skip to content

Commit

Permalink
Merge pull request #28 from CodyTolene/ct/27-mirrored-image-fix
Browse files Browse the repository at this point in the history
[27] Bugfix - Horizontal flip when switching between camera apps.
  • Loading branch information
CodyTolene authored Nov 17, 2023
2 parents bff8dd2 + 2f05d8f commit 03b64d0
Show file tree
Hide file tree
Showing 16 changed files with 229 additions and 171 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
branches:
# Run on push to main.
- main

schedule:
# Run every day at 00:00 UTC (midnight)
- cron: "0 0 * * *"

jobs:
ufbt-build-action:
runs-on: ubuntu-latest
Expand All @@ -15,20 +17,24 @@ jobs:
include:
- name: dev
sdk-channel: dev

- name: release
sdk-channel: release

name: "ufbt: Build for ${{ matrix.name }}"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Build with ufbt
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
id: build-app
with:
app-dir: ./fap
sdk-channel: ${{ matrix.sdk-channel }}

- name: Upload app artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/lint-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build with ufbt
# Flipper Zero ufbt action
# https://github.com/flipperdevices/flipperzero-ufbt-action
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
id: build-app
with:
app-dir: ./fap
sdk-channel: dev

- name: Lint sources
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
with:
skip-setup: true
task: lint
2 changes: 1 addition & 1 deletion arduino-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ daemon:
port: "50051"
directories:
data: C:\temp\arduino-cli\data
downloads: C:\temp\arduino-cli\downloads
downloads: C:\temp\arduino-cli\staging
user: C:\temp\arduino-cli\user
library:
enable_unsafe_install: false
Expand Down
11 changes: 6 additions & 5 deletions fap/camera_suite.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#pragma once

#include "helpers/camera_suite_storage.h"
#include "scenes/camera_suite_scene.h"
#include "views/camera_suite_view_guide.h"
#include "views/camera_suite_view_start.h"
#include "views/camera_suite_view_camera.h"
#include <furi.h>
#include <furi_hal.h>
#include <gui/gui.h>
Expand All @@ -17,6 +12,12 @@
#include <notification/notification_messages.h>
#include <stdlib.h>

#include "scenes/camera_suite_scene.h"
#include "views/camera_suite_view_guide.h"
#include "views/camera_suite_view_start.h"
#include "views/camera_suite_view_camera.h"
#include "helpers/camera_suite_storage.h"

#define TAG "Camera Suite"

typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion fap/helpers/camera_suite_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ void camera_suite_save_settings(void* context);

void camera_suite_read_settings(void* context);

#endif
#endif
Loading

0 comments on commit 03b64d0

Please sign in to comment.