mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-21 18:26:06 -05:00
[dacp] Fix issue where Hyperfine Remote provides speaker ids as decimal
Also align a bit on how we handle hex/dec parameters
This commit is contained in:
@@ -130,10 +130,6 @@ safe_hextou32(const char *str, uint32_t *val)
|
||||
|
||||
*val = 0;
|
||||
|
||||
/* A hex shall begin with 0x */
|
||||
if (strncmp(str, "0x", 2) != 0)
|
||||
return safe_atou32(str, val);
|
||||
|
||||
errno = 0;
|
||||
intval = strtoul(str, &end, 16);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user