pimoroni / bmp280-python

Python library for the BMP280 temperature, pressure, and altitude sensor.
MIT License
56 stars 19 forks source link

Fix temperature forced mode example #14

Closed marcusmartinss closed 3 months ago

marcusmartinss commented 3 months ago

Changed: Added f prefix to the string in the print function.

By adding the f prefix before the string, it correctly indicates an f-string, which allows the use of embedded expressions inside string literals. This ensures that the temperature variable is correctly formatted and printed as intended.

coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 9896872271

Details


Totals Coverage Status
Change from base Build 9097365072: 0.0%
Covered Lines: 97
Relevant Lines: 100

💛 - Coveralls
Gadgetoid commented 3 months ago

Oooof! Good catch, thank you! Entirely my fault, fortunately the only such instance (at least introduced in this commit) - https://github.com/pimoroni/bmp280-python/commit/aada6a43f7b8d957ee50b6be8cfefd0a427405ad