Skip to content

Commit

Permalink
Add missing ;s
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinkham committed Nov 10, 2023
1 parent 2da831e commit df0f412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/api/controllers/cape.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ function GetEEPROMFilename()
$eepromFile = file_get_contents("/home/fpp/media/tmp/eeprom_location.txt");
}
if (!file_exists($eepromFile) && startsWith($eepromFile, "/sys/bus/i2c/devices/")) {
$target = "/sys/bus/i2c/devices/i2c-1/new_device"
$target = "/sys/bus/i2c/devices/i2c-1/new_device";
if ($settings['Platform'] == "BeagleBone Black") {
$target = "/sys/bus/i2c/devices/i2c-2/new_device"
$target = "/sys/bus/i2c/devices/i2c-2/new_device";
}
system("sudo bash -c \"echo '24c256 0x50' > $target\"");
}
Expand Down

0 comments on commit df0f412

Please sign in to comment.