Skip to content

Commit 60b89e1

Browse files
authored
os: Enable GPS on adafruithat only (#591)
The GPS hat is not tested and probably incompatible with PlanktoScope hat.
1 parent 8261b4e commit 60b89e1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

documentation/docs/reference/hardware/changelog.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ Replaces [Raspberry Pi 4](https://www.raspberrypi.com/products/raspberry-pi-4-mo
1212
1313
Increased RAM from 4 to 8 GB.
1414
15-
Includes a [Real Time Clock (RTC)](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#real-time-clock-rtc)
16-
17-
Includes [RTC rechargeable battery](https://www.raspberrypi.com/products/rtc-battery/)
15+
Includes a [Real Time Clock (RTC)](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#real-time-clock-rtc) with [rechargeable battery](https://www.raspberrypi.com/products/rtc-battery/).
1816
1917
Includes [Raspberry Pi Active Cooler](https://www.raspberrypi.com/products/active-cooler/)
2018

software/distro/setup/planktoscope-app-env/setup.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ else
6666
panic "$description"
6767
fi
6868

69-
description="set up GPS and clock driver"
70-
report_starting "$description"
71-
if "$build_scripts_root/gps/install.sh"; then
72-
report_finished "$description"
73-
else
74-
panic "$description"
69+
if [ "$hardware_type" = "adafruithat" ]; then
70+
description="set up GPS and clock driver"
71+
report_starting "$description"
72+
if "$build_scripts_root/gps/install.sh"; then
73+
report_finished "$description"
74+
else
75+
panic "$description"
76+
fi
7577
fi
7678

7779
description="enable CPU overclocking"

0 commit comments

Comments
 (0)