diff --git a/src/I2S/DMABufferDescriptor.h b/src/I2S/DMABufferDescriptor.h index 3d0a6b6..0d548ce 100644 --- a/src/I2S/DMABufferDescriptor.h +++ b/src/I2S/DMABufferDescriptor.h @@ -105,7 +105,7 @@ class DMABufferDescriptor : protected lldesc_t if (!b) DEBUG_PRINTLN("Failed to alloc DMABufferDescriptor"); b->init(); - if (allocateBuffer) + if (allocBuffer) b->setBuffer(allocateBuffer(bytes, clear, clearValue), bytes); return b; } diff --git a/src/VGA/VGA.h b/src/VGA/VGA.h index 0b7a6f6..bf48bfd 100644 --- a/src/VGA/VGA.h +++ b/src/VGA/VGA.h @@ -33,7 +33,7 @@ class VGA : public VGAMode, public VGAPinConfig // TODO This function should be pure virtual, but it is currently implemented with added arguments in children classes virtual bool init(const Mode &mode, const int *pinMap, const int bitCount, const int clockPin = -1) - {} + { return false; } virtual bool init(const Mode &mode, const PinConfig &pinConfig) = 0;