forked from xiaozhi/xiaozhi-esp32
fit the memory usage for esp32c3
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "board.h"
|
||||
#include "system_info.h"
|
||||
#include "display/no_display.h"
|
||||
|
||||
#include <esp_log.h>
|
||||
#include <esp_ota_ops.h>
|
||||
@@ -11,6 +12,12 @@ bool Board::GetBatteryLevel(int &level, bool& charging) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Display* Board::GetDisplay() {
|
||||
static NoDisplay display;
|
||||
return &display;
|
||||
}
|
||||
|
||||
|
||||
std::string Board::GetJson() {
|
||||
/*
|
||||
{
|
||||
@@ -101,4 +108,4 @@ std::string Board::GetJson() {
|
||||
// Close the JSON object
|
||||
json += "}";
|
||||
return json;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user