Skip to content

Commit

Permalink
[Ameba] Remove unwanted ota files and apply minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pankore committed Jan 10, 2022
1 parent c0a1cf1 commit 17b247f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 98 deletions.
2 changes: 0 additions & 2 deletions examples/ota-requestor-app/ameba/chip_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ list(
${chip_dir}/src/app/clusters/ota-requestor/OTARequestor.cpp
${chip_dir}/src/app/clusters/ota-requestor/ota-requestor-server.cpp
${chip_dir}/src/app/util/im-client-callbacks.cpp

${sdk_root}/component/soc/realtek/amebad/misc/rtl8721d_ota.c
)

add_library(
Expand Down
57 changes: 0 additions & 57 deletions examples/ota-requestor-app/ameba/main/include/AppEvent.h

This file was deleted.

38 changes: 0 additions & 38 deletions examples/ota-requestor-app/ameba/main/include/AppTask.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/platform/Ameba/AmebaOTAImageProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void AmebaOTAImageProcessor::HandleProcessBlock(intptr_t context)

// Erase target partition
ChipLogProgress(SoftwareUpdate, "Erasing partition");
imageProcessor->NewFWBlkSize = ((0xF8000 - 1)/4096) + 1; // Use a fixed image length of 0xF8000, change in the future
imageProcessor->NewFWBlkSize = ((0x1F8000 - 1)/4096) + 1; // Use a fixed image length of 0xF8000, change in the future
ChipLogProgress(SoftwareUpdate, "Erasing %d sectors", imageProcessor->NewFWBlkSize);
device_mutex_lock(RT_DEV_LOCK_FLASH);
for (int i=0; i<imageProcessor->NewFWBlkSize; i++)
Expand Down

0 comments on commit 17b247f

Please sign in to comment.