Skip to content

Commit 7565c22

Browse files
committed
Allow customizable block size in ThingerESP32OTA constructor
1 parent f1b0153 commit 7565c22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ThingerESP32OTA.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
class ThingerESP32OTA : public ThingerOTA{
1616

1717
public:
18-
ThingerESP32OTA(ThingerClient& client) :
18+
ThingerESP32OTA(ThingerClient& client, size_t block_size=32768) :
1919
ThingerOTA(client)
2020
{
2121
// initialize a default block size for esp32
22-
set_block_size(32768);
22+
set_block_size(block_size);
2323
}
2424

2525
virtual ~ThingerESP32OTA(){

0 commit comments

Comments
 (0)