Update xsns_09_bmp2x.ino

fix model detection
This commit is contained in:
reloxx13 2018-10-28 21:32:58 +01:00 committed by GitHub
parent b49a29fa0f
commit bf6ac243e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -449,8 +449,7 @@ void Bmp2xDetect()
}
if (success) {
GetTextIndexed(bmp2x_sensors[bmp2x_count].bmp_name, sizeof(bmp2x_sensors[bmp2x_count].bmp_name), i, kBmpTypes);
GetTextIndexed(bmp2x_sensors[bmp2x_count].bmp_name, sizeof(bmp2x_sensors[bmp2x_count].bmp_name), bmp2x_sensors[bmp2x_count].bmp_model, kBmpTypes);
snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, bmp2x_sensors[bmp2x_count].bmp_name, bmp2x_sensors[bmp2x_count].bmp_address);
AddLog(LOG_LEVEL_DEBUG);
bmp2x_count++;