[api] Also fall back to make_unique on LN882x; add LN882x test config

This commit is contained in:
J. Nick Koston
2026-03-07 08:42:22 -10:00
parent 961d55883c
commit 4ce1c3ffd9
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ class Proto32Bit {
/// Helper to use make_unique_for_overwrite where available (skips zero-fill),
/// falling back to make_unique on older GCC (ESP8266, BK72xx).
inline std::unique_ptr<uint8_t[]> make_buffer(size_t n) {
#if defined(USE_ESP8266) || defined(USE_BK72XX)
#if defined(USE_ESP8266) || defined(USE_BK72XX) || defined(USE_LN882X)
return std::make_unique<uint8_t[]>(n);
#else
return std::make_unique_for_overwrite<uint8_t[]>(n);
@@ -0,0 +1,5 @@
<<: !include common.yaml
wifi:
ssid: MySSID
password: password1