Skip to content

Commit

Permalink
Make backward compatible for the warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-github committed Aug 24, 2024
1 parent c568b80 commit cbc3183
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32SSDP
version=2.0.1
version=2.0.2
author=Me-No-Dev
maintainer=luc-github
sentence=Simple SSDP library for ESP32
Expand Down
4 changes: 4 additions & 0 deletions src/ESP32SSDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ static const char _ssdp_notify_template[] PROGMEM =

static const char _ssdp_packet_template[] PROGMEM =
"%s" // _ssdp_response_template / _ssdp_notify_template
#if (ESP_ARDUINO_VERSION_MAJOR < 3)
"CACHE-CONTROL: max-age=%u\r\n" // _interval
#else
"CACHE-CONTROL: max-age=%lu\r\n" // _interval
#endif //(ESP_ARDUINO_VERSION_MAJOR < 3)
"SERVER: %s UPNP/1.1 %s/%s\r\n" // _servername, _modelName, _modelNumber
"USN: uuid:%s%s\r\n" // _uuid, _usn_suffix
"%s: %s\r\n" // "NT" or "ST", _deviceType
Expand Down

0 comments on commit cbc3183

Please sign in to comment.