squash a bunch of warnings

This commit is contained in:
jacqueline
2024-04-19 16:51:53 +10:00
parent 354ba0325a
commit 8e113ea9ae
11 changed files with 17 additions and 11 deletions
+1 -1
View File
@@ -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
View File
@@ -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;
+2 -1
View File
@@ -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;
}