Skip to content

Commit

Permalink
unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Apr 28, 2024
1 parent 0ad23cc commit f80b224
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ESP32/prepare.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#! /usr/bin/python3

import json
import subprocess
import sys


def get_git_hash():
Expand All @@ -12,6 +10,7 @@ def get_git_hash():
ret = subprocess.run(["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE, text=True)
return ret.stdout.strip() + add


fh = open('version.cpp', 'w')
fh.write('const char *version_str = "' + get_git_hash() + '";\n')
fh.close()

0 comments on commit f80b224

Please sign in to comment.