Skip to content

Commit ae84368

Browse files
committed
Source volume remove +5
1 parent 5af2573 commit ae84368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BluetoothA2DPSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ void BluetoothA2DPSource::bt_av_notify_evt_handler(
927927
case ESP_AVRC_RN_VOLUME_CHANGE:
928928
ESP_LOGI(BT_RC_CT_TAG, "Volume changed: %d", event_parameter->volume);
929929
// limit the value to 127
930-
uint8_t new_volume = std::min((event_parameter->volume), 0x7f);
930+
uint8_t new_volume = std::min((int)event_parameter->volume, 0x7f);
931931
ESP_LOGI(BT_RC_CT_TAG, "Set absolute volume: volume %d", new_volume);
932932
esp_avrc_ct_send_set_absolute_volume_cmd(APP_RC_CT_TL_RN_VOLUME_CHANGE,
933933
new_volume);

0 commit comments

Comments
 (0)