mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[PR #374] [MERGED] use malloc/free for WiFiManagerParameter* array instead of hard coding. #1611
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1611
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tzapu/WiFiManager/pull/374
Author: @liebman
Created: 6/4/2017
Status: ✅ Merged
Merged: 1/30/2018
Merged by: @tablatronix
Base:
master← Head:allocate-params-array📝 Commits (8)
362a561use malloc/free for WiFiManagerParameter* array instead of hard coding.3950a3buse single constructor with default value for sizec4905c2remove init function as its not needed with one constructor8987680removed un-needed constructor declaration3370417Merge remote-tracking branch 'upstream/master' into allocate-params-array6465d72Refactored to use only a default constructor and automatically resize the parameter array each time the size limit is reached.0b6341bcleanup readme (removed hint about alternate constructor)d66cd47use realloc() when increasing the size of _params. addParameter() now returns bool📊 Changes
2 files changed (+32 additions, -10 deletions)
View changed files
📝
WiFiManager.cpp(+27 -7)📝
WiFiManager.h(+5 -3)📄 Description
Dynamically allocate the _params array. Existing no arg constructor uses the same default, 10, as it used to. Added a second constructor that allows setting size. Added Destructor that frees allocated _params.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.