Skip to content

Commit 481a604

Browse files
fix: shorten verbose comment in useBluetoothHRM
Shortened a verbose comment explaining the connectionLock logic to comply with coding standards ("NO VERBOSE COMMENTS"). Co-authored-by: arii <342438+arii@users.noreply.github.com>
1 parent 275c9ea commit 481a604

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/useBluetoothHRM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const useBluetoothHRM = (props: UseBluetoothHRMProps = {}) => {
220220
const timeSinceLastData = Date.now() - lastDataTime.current
221221

222222
if (timeSinceLastData > dataLivenessTimeoutMs) {
223-
// Fix Race Condition: Don't force a disconnect/reconnect if we are already in a connection state transition
223+
// Don't force a disconnect/reconnect during connection state transition
224224
if (connectionLock.current) {
225225
logger.warn(
226226
{ timeSinceLastData },

0 commit comments

Comments
 (0)