diff --git a/Code/config.txt b/Code/config.txt index 35c4593..ff64676 100644 --- a/Code/config.txt +++ b/Code/config.txt @@ -1,2 +1,2 @@ -VERSION=v2_1_2 -VERSION_DATE=4/24/2019 +VERSION=v2_1_4 +VERSION_DATE=3/9/2023 diff --git a/Code/localfiles/nebulae.service b/Code/localfiles/nebulae.service index c756369..48a1ccc 100644 --- a/Code/localfiles/nebulae.service +++ b/Code/localfiles/nebulae.service @@ -1,9 +1,10 @@ [Unit] Description=Starts Nebulae -DefaultDependencies=false +DefaultDependencies=false After=local-fs.target [Service] +User=root #ExecStart=/home/alarm/QB_Nebulae_V2/Code/scripts/startup.sh ExecStart=/home/alarm/checkfirmware.sh WorkingDirectory=/ diff --git a/Code/nebulae/digitaldata.py b/Code/nebulae/digitaldata.py index 555b1c0..bdd865f 100644 --- a/Code/nebulae/digitaldata.py +++ b/Code/nebulae/digitaldata.py @@ -235,23 +235,26 @@ def handle_gate(self): def handle_incremental_value(self): + s = self.state g = self.g_state b = self.b_state self.g_state = 0 self.b_state = 0 if g == 1 or b == 1: if self.inc_order == 0: - self.state += 1 - if self.state >= self.maximum: - self.state = 0 + s += 1 + if s >= self.maximum: + s = 0 elif self.inc_order == 1: - self.state -= 1 - if self.state < 0: - self.state = self.maximum - 1 + s -= 1 + if s < 0: + s = self.maximum - 1 elif self.inc_order == 2: - self.state = random.randint(0, self.maximum - 1) - if self.state > self.maximum: - self.state = 0 + s = random.randint(0, self.maximum - 1) + if s > self.maximum: + s = 0 + + self.state = s def getValue(self): self.prev_state = self.state diff --git a/FirmwareUpdates/v_2_1_3/neb_update.zip b/FirmwareUpdates/v_2_1_3/neb_update.zip new file mode 100644 index 0000000..8a2b4e4 Binary files /dev/null and b/FirmwareUpdates/v_2_1_3/neb_update.zip differ diff --git a/FirmwareUpdates/v_2_1_4/neb_update.zip b/FirmwareUpdates/v_2_1_4/neb_update.zip new file mode 100644 index 0000000..a72b368 Binary files /dev/null and b/FirmwareUpdates/v_2_1_4/neb_update.zip differ