I am attempting to make use of the “on-the-fly” GIT revision use case shown on Redirecting.... However, when compiling an Arduino Uno project to print out the revision I receive the following error:
<command-line>:0:11: warning: missing terminating " character <command-line>:0:11: warning: missing terminating " character <command-line>:0:13: error: exponent has no digits AutomationBoardMqttController.ino:157:18: note: in expansion of macro 'PIO_SRC_REV' Serial.println(PIO_SRC_REV);
The platform.ini file I am using is:
[env:uno] platform = atmelavr framework = arduino board = uno ; Build options build_flags = !echo "-DPIO_SRC_REV="$(git rev-parse HEAD)
Many thanks for any assistance.