Skip to content

Commit 28e7fb4

Browse files
authored
Merge branch 'dev' into dev
2 parents 8c62c69 + 46fb862 commit 28e7fb4

File tree

46 files changed

+667
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+667
-101
lines changed

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
- name: 'Run units and validate results'
5757
id: run_units
5858
if: steps.copy.outcome == 'success'
59+
timeout-minutes: 2.5
5960
run: |
6061
source scripts/toolchain/fbtenv.sh
6162
python3 scripts/testing/units.py ${{steps.device.outputs.flipper}}

.github/workflows/updater_test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
test_updater_on_bench:
13-
runs-on: [self-hosted, FlipperZeroTest] # currently on same bench as units, needs different bench
13+
runs-on: [self-hosted, FlipperZeroTestMac1]
1414
steps:
1515
- name: 'Decontaminate previous build leftovers'
1616
run: |
@@ -27,7 +27,8 @@ jobs:
2727
- name: 'Get flipper from device manager (mock)'
2828
id: device
2929
run: |
30-
echo "flipper=/dev/ttyACM0" >> $GITHUB_OUTPUT
30+
echo "flipper=/dev/tty.usbmodemflip_Rekigyn1" >> $GITHUB_OUTPUT
31+
echo "stlink=0F020D026415303030303032" >> $GITHUB_OUTPUT
3132
3233
- name: 'Flashing target firmware'
3334
id: first_full_flash
@@ -67,7 +68,7 @@ jobs:
6768
- name: 'Flash last release'
6869
if: failure()
6970
run: |
70-
./fbt flash OPENOCD_ADAPTER_SERIAL=2A0906016415303030303032 FORCE=1
71+
./fbt flash OPENOCD_ADAPTER_SERIAL=${{steps.device.outputs.stlink}} FORCE=1
7172
7273
- name: 'Wait for flipper and format ext'
7374
if: failure()

CODING_STYLE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Almost everything in flipper firmware is built around this concept.
5252

5353
## Naming
5454

55-
### Type names are CamelCase
55+
### Type names are PascalCase
5656

5757
Examples:
5858

applications/debug/unit_tests/nfc/nfc_test.c

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,37 @@ static void mf_classic_generator_test(uint8_t uid_len, MfClassicType type) {
348348
memcpy(atqa, nfc_dev->dev_data.nfc_data.atqa, 2);
349349

350350
MfClassicData* mf_data = &nfc_dev->dev_data.mf_classic_data;
351-
// Check the manufacturer block (should be uid[uid_len] + 0xFF[rest])
351+
// Check the manufacturer block (should be uid[uid_len] + BCC (for 4byte only) + SAK + ATQA0 + ATQA1 + 0xFF[rest])
352352
uint8_t manufacturer_block[16] = {0};
353353
memcpy(manufacturer_block, nfc_dev->dev_data.mf_classic_data.block[0].value, 16);
354354
mu_assert(
355355
memcmp(manufacturer_block, uid, uid_len) == 0,
356356
"manufacturer_block uid doesn't match the file\r\n");
357-
for(uint8_t i = uid_len; i < 16; i++) {
357+
358+
uint8_t position = 0;
359+
if(uid_len == 4) {
360+
position = uid_len;
361+
362+
uint8_t bcc = 0;
363+
364+
for(int i = 0; i < uid_len; i++) {
365+
bcc ^= uid[i];
366+
}
367+
368+
mu_assert(manufacturer_block[position] == bcc, "manufacturer_block bcc assert failed\r\n");
369+
} else {
370+
position = uid_len - 1;
371+
}
372+
373+
mu_assert(manufacturer_block[position + 1] == sak, "manufacturer_block sak assert failed\r\n");
374+
375+
mu_assert(
376+
manufacturer_block[position + 2] == atqa[0], "manufacturer_block atqa0 assert failed\r\n");
377+
378+
mu_assert(
379+
manufacturer_block[position + 3] == atqa[1], "manufacturer_block atqa1 assert failed\r\n");
380+
381+
for(uint8_t i = position + 4; i < 16; i++) {
358382
mu_assert(
359383
manufacturer_block[i] == 0xFF, "manufacturer_block[i] == 0xFF assert failed\r\n");
360384
}

applications/main/bad_usb/bad_usb_script.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ static const DuckyKey ducky_keys[] = {
5050
{"ALT-SHIFT", KEY_MOD_LEFT_ALT | KEY_MOD_LEFT_SHIFT},
5151
{"ALT-GUI", KEY_MOD_LEFT_ALT | KEY_MOD_LEFT_GUI},
5252
{"GUI-SHIFT", KEY_MOD_LEFT_GUI | KEY_MOD_LEFT_SHIFT},
53+
{"GUI-CTRL", KEY_MOD_LEFT_GUI | KEY_MOD_LEFT_CTRL},
5354

5455
{"CTRL", KEY_MOD_LEFT_CTRL},
5556
{"CONTROL", KEY_MOD_LEFT_CTRL},

applications/plugins/weather_station/helpers/weather_station_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <furi.h>
44
#include <furi_hal.h>
55

6-
#define WS_VERSION_APP "0.6.1"
6+
#define WS_VERSION_APP "0.7"
77
#define WS_DEVELOPED "SkorP"
88
#define WS_GITHUB "https://github.com/flipperdevices/flipperzero-firmware"
99

0 commit comments

Comments
 (0)