Skip to content

Commit

Permalink
Merge pull request #7 from leha-bot/fix/build-on-rel-fw
Browse files Browse the repository at this point in the history
Fix build on fresh Flipper firmware
  • Loading branch information
xtruan authored May 20, 2024
2 parents 322f7f2 + 66995c1 commit 8bce552
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helpers/flipchess_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
bool flipchess_has_file(const FlipChessFile file_type, const char* file_name, const bool remove) {
bool ret = false;
const char* path;
char path_buf[FILE_MAX_PATH_LEN] = {0};
if(file_type == FlipChessFileBoard) {
path = FLIPCHESS_BOARD_PATH;
} else {
char path_buf[FILE_MAX_PATH_LEN] = {0};
strcpy(path_buf, FLIPCHESS_APP_BASE_FOLDER); // 22
strcpy(path_buf + strlen(path_buf), "/");
strcpy(path_buf + strlen(path_buf), file_name);
Expand Down
4 changes: 2 additions & 2 deletions sam/stm32_sam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4510,7 +4510,7 @@ void STM32SAM::AdjustLengths() {
mem56 = flags[index];

// not a consonant
if((flags[index] & 64) == 0) {
if((index != 255 && flags[index] & 64) == 0) {
// RX or LX?
if((index == 18) || (index == 19)) // 'RX' & 'LX'
{
Expand Down Expand Up @@ -5700,4 +5700,4 @@ inline void STM32SAM::SetAUDIO(unsigned char main_volume) {
}

LL_TIM_OC_SetCompareCH1(FURI_HAL_SPEAKER_TIMER, data);
}
}

0 comments on commit 8bce552

Please sign in to comment.