Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 4 additions & 1 deletion src/HalDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@ bool HalDisplay::toggleInverted() {

bool HalDisplay::isInverted() const { return inverted; }

void HalDisplay::displayBuffer(RefreshMode mode, bool turnOffScreen) {
void HalDisplay::displayBuffer(RefreshMode mode, bool turnOffScreen,
bool /*forceCleanBaseOnHalf*/) {
// The simulator has no e-ink half-refresh base to keep clean, so the
// base-clearing guarantee this flag requests on-device is a no-op here.
refreshDisplay(mode, turnOffScreen);
}

Expand Down
3 changes: 2 additions & 1 deletion src/HalDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class HalDisplay {
bool isInverted() const;

void displayBuffer(RefreshMode mode = RefreshMode::FAST_REFRESH,
bool turnOffScreen = false);
bool turnOffScreen = false,
bool forceCleanBaseOnHalf = true);
void displayBufferAsync(RefreshMode mode = RefreshMode::FAST_REFRESH);
void waitRefreshComplete();
bool supportsAsyncRefresh() const;
Expand Down
3 changes: 3 additions & 0 deletions src/esp_http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ enum esp_http_client_method_t {
HTTP_METHOD_GET,
HTTP_METHOD_POST,
HTTP_METHOD_PUT,
HTTP_METHOD_DELETE,
};

enum esp_http_client_auth_type_t {
Expand Down Expand Up @@ -72,6 +73,8 @@ inline const char *methodName(esp_http_client_method_t method) {
return "POST";
case HTTP_METHOD_PUT:
return "PUT";
case HTTP_METHOD_DELETE:
return "DELETE";
case HTTP_METHOD_GET:
default:
return "GET";
Expand Down