Commit c15f8edd authored by Lars Knudsen's avatar Lars Knudsen Committed by Mahesh Mahadevan
Browse files

Bluetooth: Shell: Fix iso sync timeout range check



Using BT_ISO_SYNC_TIMEOUT_MIN and BT_ISO_SYNC_TIMEOUT_MAX now.

Signed-off-by: default avatarLars Knudsen <LAKD@demant.com>
parent 7a7cfd0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -873,8 +873,8 @@ static int cmd_big_sync(const struct shell *sh, size_t argc, char *argv[])
			}

			if (!IN_RANGE(sync_timeout,
				      BT_ISO_SYNC_MSE_MIN,
				      BT_ISO_SYNC_MSE_MAX)) {
				      BT_ISO_SYNC_TIMEOUT_MIN,
				      BT_ISO_SYNC_TIMEOUT_MAX)) {
				shell_error(sh, "Invalid sync_timeout %lu",
					    sync_timeout);