From a3822a8ff374e819890833139f3cc9fdb1a380f3 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 26 Feb 2023 18:20:39 -0500 Subject: [PATCH] switch upper and lower for rand_float --- cubesatsim/cubesatsim.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index b453a363..5c4a34ae 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -80,7 +80,7 @@ char call[] = "AMSAT"; // put your callsign here extern bool get_camera_image(bool debug); extern bool start_camera(); -float rand_float(float upper, float lower) { +float rand_float(float lower, float upper) { return (float)(random(upper*100, lower*100)/100.0); }