Macro error after replacing SHT3x with BME280 was caused by sensor register case

Good afternoon! Like the person above, I replaced the sensor with a BME. The sensor connected, and there are readings. But when I start any macro, I get this error: Error evaluating ‘gcode_macro DRY_U1:gcode’: UndefinedError: ‘instance object’ has no attribute ‘sht3x iDryer_U1_Air’. I tried replacing sht3x with BME280. Didn’t help.

🇷🇺 Оригинал

Добрый день! Как и товарищ выше заменил датчик на BME. Датчик подключился, показания есть. Но при запуске любого макроса вылезает ошибка: Error evaluating ‘gcode_macro DRY_U1:gcode’: UndefinedError: ‘instance object’ has no attribute ‘sht3x iDryer_U1_Air’. пробовал заменить sht 3x на BME280. Не помогает.

Try bme280 — sometimes the letter case makes the difference.
But honestly, who knows what exactly you did and how; when you’re asking a question about Klipper, always attach a fresh klippy.log

🇷🇺 Оригинал

попробуй на bme280 - регистр порой решает
Но вообще ктож знает что и как именно ты делал, когда задаешь вопрос про клиппер - всегда прикладывай свежий klippy.log

Thanks, I’ll try it. I’ll keep that in mind for the future.

It worked, the issue was the letter case.

🇷🇺 Оригинал

Спасибо,попробую. Учту на будущее.

Заработало, дело было в регистре.