diff --git a/CHANGELOG.md b/CHANGELOG.md index 3140f742b..072070ad2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * SubGHz: Nice One -> Add manually (programming is possible using regular button) * SubGHz: More precise settings for debug counter increase value * Plugins -> MouseJacker: Features, Fixes and improvements (by @MatthisC | PR #366) +* Plugins -> HC-SR04: Improve accuracy by measuring microseconds (by @clashlab | PR #367) * OFW: BadUSB UI fixes * OFW: Plugins: move to designated categories -> **We moved some plugins to new categories too** * OFW: Drivers: remove excessive check in bq25896 and make PVS happy diff --git a/ReadMe.md b/ReadMe.md index 9265fb626..5563bc390 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -190,12 +190,13 @@ Games: ## [- How to add extra Sub-GHz frequencies](https://github.com/DarkFlippers/unleashed-firmware/blob/dev/documentation/SubGHzSettings.md) ## [- How to use Flipper as new remote (Nice FlorS, BFT Mitto, Somfy Telis)](https://github.com/DarkFlippers/unleashed-firmware/blob/dev/documentation/SubGHzRemoteProg.md) + +## [- Configure Sub-GHz Remote App](https://github.com/DarkFlippers/unleashed-firmware/blob/dev/documentation/SubGHzRemotePlugin.md) + ### **Plugins** ## [- 🎲 Download Extra plugins for Unleashed](https://github.com/xMasterX/unleashed-extra-pack) -## [- Configure Sub-GHz Remote App](https://github.com/DarkFlippers/unleashed-firmware/blob/dev/documentation/SubGHzRemotePlugin.md) - ## [- TOTP (Authenticator) config description](https://github.com/akopachov/flipper-zero_authenticator/blob/master/docs/conf-file_description.md) ## [- Barcode Generator](https://github.com/DarkFlippers/unleashed-firmware/blob/dev/documentation/BarcodeGenerator.md) diff --git a/applications/plugins/hc_sr04/hc_sr04.c b/applications/plugins/hc_sr04/hc_sr04.c index 3cb9e72d6..db075247a 100644 --- a/applications/plugins/hc_sr04/hc_sr04.c +++ b/applications/plugins/hc_sr04/hc_sr04.c @@ -165,7 +165,8 @@ static void hc_sr04_measure(PluginState* const plugin_state) { //FURI_CRITICAL_EXIT(); - plugin_state->echo = (pulse_end - pulse_start) / furi_hal_cortex_instructions_per_microsecond(); + plugin_state->echo = + (pulse_end - pulse_start) / furi_hal_cortex_instructions_per_microsecond(); plugin_state->distance = hc_sr04_us_to_m(plugin_state->echo); plugin_state->measurement_made = true;