MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getBufferSize

Function getBufferSize

Drivers/EspLcdCompat/Source/EspLcdDisplayV2.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10static const auto LOGGER = tt::Logger("EspLcdDispV2");
11
12inline unsigned int getBufferSize(const std::shared_ptr<EspLcdConfiguration>& configuration) {
13 if (configuration->bufferSize != DEFAULT_BUFFER_SIZE) {
14 return configuration->bufferSize;
15 } else {
16 return configuration->horizontalResolution * (configuration->verticalResolution / 10);
17 }
18}
19
20EspLcdDisplayV2::~EspLcdDisplayV2() {
21 check(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected