squash a bunch of warnings
This commit is contained in:
@@ -234,7 +234,7 @@ auto TrackTags::genres(const std::string_view s) -> void {
|
||||
std::string src = {s.data(), s.size()};
|
||||
char* token = std::strtok(src.data(), kGenreDelimiters);
|
||||
|
||||
auto trim_and_add = [=](std::string_view s) {
|
||||
auto trim_and_add = [this](std::string_view s) {
|
||||
std::string copy = {s.data(), s.size()};
|
||||
|
||||
// Trim the left
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ static const adc_bitwidth_t kAdcBitWidth = ADC_BITWIDTH_12;
|
||||
static const adc_unit_t kAdcUnit = ADC_UNIT_1;
|
||||
// Max battery voltage should be a little over 2V due to our divider, so we need
|
||||
// the max attenuation to properly handle the full range.
|
||||
static const adc_atten_t kAdcAttenuation = ADC_ATTEN_DB_11;
|
||||
static const adc_atten_t kAdcAttenuation = ADC_ATTEN_DB_12;
|
||||
// Corresponds to SENSOR_VP.
|
||||
static const adc_channel_t kAdcChannel = ADC_CHANNEL_0;
|
||||
|
||||
|
||||
@@ -438,7 +438,8 @@ void Disabled::react(const events::Enable&) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((err = esp_bluedroid_init() != ESP_OK)) {
|
||||
esp_bluedroid_config_t cfg = BT_BLUEDROID_INIT_CONFIG_DEFAULT();
|
||||
if ((err = esp_bluedroid_init_with_cfg(&cfg) != ESP_OK)) {
|
||||
ESP_LOGE(kTag, "initialize bluedroid failed %s", esp_err_to_name(err));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user