Skip to content

Commit

Permalink
added experimental RP2040 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed Oct 25, 2022
1 parent bc54ab7 commit 4e545b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
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
Expand Up @@ -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++;
Expand Down
4 changes: 3 additions & 1 deletion src/ESP32-targz-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/ESP32-targz-lib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions src/ESP32-targz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4e545b6

Please sign in to comment.