mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-30 11:28:21 +03:00
fix country code in cspot
This commit is contained in:
@@ -120,9 +120,9 @@ void MercurySession::handlePacket() {
|
||||
switch (static_cast<RequestType>(packet.command)) {
|
||||
case RequestType::COUNTRY_CODE_RESPONSE: {
|
||||
this->countryCode = std::string();
|
||||
this->countryCode.reserve(2);
|
||||
this->countryCode.resize(2);
|
||||
memcpy(this->countryCode.data(), packet.data.data(), 2);
|
||||
CSPOT_LOG(debug, "Received country code");
|
||||
CSPOT_LOG(debug, "Received country code %s", this->countryCode.c_str());
|
||||
break;
|
||||
}
|
||||
case RequestType::AUDIO_KEY_FAILURE_RESPONSE:
|
||||
|
||||
Reference in New Issue
Block a user