Skip to content

emonSDexpand #38

Description

@NWItaly

A few days ago I downloaded new emonSD image and I flashed it in a 32GB micro SD for a raspberry 2.
When I tried to execute emonSDexpand I received this message:

SyntaxError: Missing parentheses in call to 'print' or similar. I don’t have an exact copy of error.
So I tried to modify emonSDexpand script. I finded 2 rows that use “print”. I added 2 parenthesis and bug was solved.

Previous:

echo " SD card total disk size = "$(python -c "print $PART_END * 512.0 / 1073741824")"Gb"
echo " Data Partition size     = "$(python -c "print ($DATA_END - $DATA_START + 1) * 512.0 / 1073741824")"Gb"

Resolved:

echo " SD card total disk size = "$(python -c "print($PART_END * 512.0 / 1073741824)")"Gb"
echo " Data Partition size     = "$(python -c "print(($DATA_END - $DATA_START + 1) * 512.0 / 1073741824)")"Gb"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions