Skip to content

Commit

Permalink
[utils/common] better format
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Dec 14, 2023
1 parent 7182e4f commit 9c0e404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ function is_raspeberrypi_soc() {
if grep -q -i raspberry "$DT_FILE"; then
RASPBERRYPI_MODEL="$(tr -d '\0' <"$DT_FILE")"
if [ ! -f /dev/i2c-1 ]; then
echo -e "\nI2C and I2S must be enabled... Follow the steps below:\n" | tee -a "$LOG_FILE"
echo -e "[$fail_format]"
echo -e "\n\nI2C and I2S must be enabled... Follow the steps below:\n" | tee -a "$LOG_FILE"
echo -e " echo 'dtparam=i2c_arm=on' | sudo tee -a /boot/config.txt"
echo -e " echo 'dtparam=i2s=on' | sudo tee -a /boot/config.txt"
echo -e " echo 'i2c-dev' | sudo tee /etc/modules-load.d/i2c.conf"
Expand Down

0 comments on commit 9c0e404

Please sign in to comment.