mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Add mock ESP class
This commit is contained in:
parent
39ef78fd4a
commit
8494463926
2 changed files with 13 additions and 0 deletions
|
@ -24,4 +24,15 @@ void delay(unsigned long ms);
|
|||
void delayMicroseconds(unsigned long us);
|
||||
int max(int a, int b);
|
||||
|
||||
class ESPClass {
|
||||
public:
|
||||
size_t getFlashChipSize() {
|
||||
// This is a placeholder for the actual implementation
|
||||
// that retrieves the flash chip size.
|
||||
return 4 * 1024 * 1024; // Example: returning 4MB
|
||||
}
|
||||
};
|
||||
|
||||
extern ESPClass ESP;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue