Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Alex4386/f0-mtp
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 committed Nov 12, 2024
2 parents 45102b8 + e9bf56c commit c009bb3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ Here are some things you should know before using this application:
> **DO NOT transfer files over 64K** in one go.
> This will:
> - **Crash the Flipper** if the file is too big.
> - **Corrupt the SD Card filesystem** due to flipper zero's filesystem handler's limitation.
>
> And _might_ :
> - **Corrupt the SD Card filesystem** due to current implementation's limitation.
> (If you know how to fix this issue, feel free to give me a PR!, quick `chkdsk` will fix the corruption though)
>
> This is applicable to both uploading and downloading files.
> [!WARNING]
> **DO NOT** use `UNICODE` characters in the file/directory names.
Expand Down
4 changes: 2 additions & 2 deletions src/scenes/mtp/mtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1086,11 +1086,11 @@ int BuildDeviceInfo(uint8_t* buffer) {
ptr += length;

// Device version
WriteMTPString(ptr, "1.0", &length);
WriteMTPString(ptr, MTP_DEVICE_VERSION, &length);
ptr += length;

// Serial number
WriteMTPString(ptr, "HakureiReimu", &length);
WriteMTPString(ptr, MTP_DEVICE_SERIAL, &length);
ptr += length;

return ptr - buffer;
Expand Down
4 changes: 4 additions & 0 deletions src/scenes/mtp/mtp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

// MTP Device Serial
#define MTP_DEVICE_SERIAL "HakureiReimu"

Check failure on line 4 in src/scenes/mtp/mtp.h

View workflow job for this annotation

GitHub Actions / Lint

code should be clang-formatted [-Wclang-format-violations]
#define MTP_DEVICE_VERSION "1.0"

#define MTP_STANDARD_VERSION 100

Check failure on line 7 in src/scenes/mtp/mtp.h

View workflow job for this annotation

GitHub Actions / Lint

code should be clang-formatted [-Wclang-format-violations]
#define MTP_VENDOR_EXTENSION_ID 0x6
#define MTP_VENDOR_EXTENSION_VERSION 100
Expand Down

0 comments on commit c009bb3

Please sign in to comment.