Skip to content

Commit d816fb1

Browse files
committed
Bumped pysquared version to 25w26-2
Signed-off-by: Michael Pham <[email protected]>
1 parent 0df35a9 commit d816fb1

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PYSQUARED_VERSION ?= v2.0.0-alpha-25w20
1+
PYSQUARED_VERSION ?= v2.0.0-alpha-25w26-2
22
PYSQUARED ?= git+https://github.com/proveskit/pysquared@$(PYSQUARED_VERSION)
33

44
.PHONY: all

src/flight-software/repl.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
import os
2727

28+
from version import __version__
29+
2830
from lib.adafruit_drv2605 import DRV2605 ### This is Hacky V5a Devel Stuff###
2931
from lib.adafruit_mcp230xx.mcp23017 import (
3032
MCP23017, ### This is Hacky V5a Devel Stuff###
@@ -49,7 +51,6 @@
4951
from lib.pysquared.rtc.manager.microcontroller import MicrocontrollerManager
5052
from lib.pysquared.sleep_helper import SleepHelper
5153
from lib.pysquared.watchdog import Watchdog
52-
from version import __version__
5354

5455
rtc = MicrocontrollerManager()
5556

@@ -283,21 +284,21 @@ def __init__(self, add: int, pos: str, tca: TCA9548A, logger: Logger) -> None:
283284
def sensor_init(self, senlist, address) -> None:
284285
if "MCP" in senlist:
285286
try:
286-
self.mcp: MCP9808 = MCP9808(self.tca[address], address=27)
287+
self.mcp = MCP9808(self.tca[address], address=27)
287288
self.sensors["MCP"] = True
288289
except Exception as e:
289290
self.logger.error("Error Initializing Temperature Sensor", e)
290291

291292
if "VEML" in senlist:
292293
try:
293-
self.veml: VEML7700 = VEML7700(self.tca[address])
294+
self.veml = VEML7700(self.tca[address])
294295
self.sensors["VEML"] = True
295296
except Exception as e:
296297
self.logger.error("Error Initializing Light Sensor", e)
297298

298299
if "DRV" in senlist:
299300
try:
300-
self.drv: DRV2605 = DRV2605(self.tca[address])
301+
self.drv = DRV2605(self.tca[address])
301302
self.sensors["DRV"] = True
302303
except Exception as e:
303304
self.logger.error("Error Initializing Motor Driver", e)
@@ -328,14 +329,14 @@ def face_test_all(self) -> list[list[float]]:
328329
if face:
329330
try:
330331
temp: Union[float, None] = (
331-
face.mcp.temperature if face.sensors.get("MCP") else None
332+
face.mcp.temperature if face.sensors.get("MCP") else None # type: ignore
332333
)
333334
light: Union[float, None] = (
334-
face.veml.lux if face.sensors.get("VEML") else None
335+
face.veml.lux if face.sensors.get("VEML") else None # type: ignore
335336
)
336-
results.append([temp, light])
337+
results.append([temp, light]) # type: ignore
337338
except Exception:
338-
results.append([None, None])
339+
results.append([None, None]) # type: ignore
339340
return results
340341

341342

0 commit comments

Comments
 (0)