Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.7 (RP2040 support) #62

Merged
merged 5 commits into from
Oct 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added experimental RP2040 support
tobozo committed Oct 25, 2022
commit 4e545b64277bff4aae9365f4f416e5fd6c30dc8d
2 changes: 1 addition & 1 deletion examples/Test_tar_gz_tgz/Test_tar_gz_tgz.ino
Original file line number Diff line number Diff line change
@@ -614,7 +614,7 @@ void setup()

if( test_succeeded ) {
Serial.println( OpenLine );
SerialPrintfCentered("Test #%d succeeded, will proceed to the next test", testNum+1);
SerialPrintfCentered("Test #%d finished, will proceed to the next test", testNum+1);
Serial.println( CloseLine );

testNum++;
4 changes: 3 additions & 1 deletion src/ESP32-targz-lib.cpp
Original file line number Diff line number Diff line change
@@ -106,7 +106,9 @@ static uint32_t output_position = 0; //position in output_buffer
static uint16_t blockmod = GZIP_BUFF_SIZE / TAR_BLOCK_SIZE;
static uint16_t gzTarBlockPos = 0;
static size_t tarReadGzStreamBytes = 0;
static bool tarBlockIsUpdateData = false;
#if defined HAS_OTA_SUPPORT
static bool tarBlockIsUpdateData = false;
#endif
size_t min_output_buffer_size = 512;

#if defined ESP32
3 changes: 2 additions & 1 deletion src/ESP32-targz-lib.hpp
Original file line number Diff line number Diff line change
@@ -42,15 +42,16 @@

#include <FS.h>


#if defined( ESP32 )
#include <Update.h>
#define HAS_OTA_SUPPORT
#elif defined( ESP8266 )
//#ifdef USE_LittleFS
// #define SPIFFS LittleFS
// #include <LittleFS.h>
//#endif
#include <Updater.h>
#define HAS_OTA_SUPPORT
#elif defined ARDUINO_ARCH_RP2040
// TODO: RP2040 OTA implementation?
#else
5 changes: 0 additions & 5 deletions src/ESP32-targz.h
Original file line number Diff line number Diff line change
@@ -165,11 +165,6 @@ __attribute__((unused)) static size_t targzTotalBytesFn() {
}


#if defined ESP32 || defined ESP8266
#define HAS_OTA_SUPPORT
#endif


#include "ESP32-targz-lib.hpp"

#endif