Skip to content

Commit

Permalink
Add support more Arduino boards for OTA firmware update
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Jul 1, 2024
1 parent a6aed2c commit 59e00e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/core/Updater/UpdaterArduino.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Created July 1, 2024
*
*
* The MIT License (MIT)
* Copyright (c) 2024 K. Suwatchai (Mobizt)
*
Expand Down Expand Up @@ -77,6 +77,8 @@ void UpdaterArduino::apply()
#endif
}

#if defined(FIREBASE_UPDATER_INTERNAL_STORAGE)
UpdaterArduino Update;
#endif

#endif
6 changes: 3 additions & 3 deletions src/core/Updater/UpdaterArduino.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Created July 1, 2024
*
*
* The MIT License (MIT)
* Copyright (c) 2024 K. Suwatchai (Mobizt)
*
Expand Down Expand Up @@ -29,7 +29,6 @@
#include <Arduino.h>
#include "./Config.h"


class UpdaterArduino
{

Expand All @@ -41,12 +40,13 @@ class UpdaterArduino
size_t write(uint8_t *data, size_t len);

private:

size_t write(uint8_t b);
void close();
void apply();
};

#if defined(FIREBASE_UPDATER_INTERNAL_STORAGE)
extern UpdaterArduino Update;
#endif

#endif

0 comments on commit 59e00e8

Please sign in to comment.