Utilise magic memory tree interface for src/pindefs.c

This commit is contained in:
Stefan Rueger
2024-04-26 23:31:21 +01:00
parent 2b43a27d0a
commit 34efea1073

View File

@@ -354,7 +354,7 @@ const char * pins_to_str(const struct pindef_t * const pindef) {
* This function returns a string of defined pins, eg, ~1, 2, ~4, ~5, 7 or ""
*
* @param[in] pindef the pin definition for which we want the string representation
* @returns a pointer to a string, which was created by cfg_strdup()
* @returns a pointer to a string, which was created by mmt_strdup()
*/
char *pins_to_strdup(const struct pindef_t * const pindef) {
char buf[6*(PIN_MAX+1)], *p = buf;
@@ -369,7 +369,7 @@ char *pins_to_strdup(const struct pindef_t * const pindef) {
}
}
return cfg_strdup("pins_to_strdup()", buf);
return mmt_strdup(buf);
}
/**