Skip to content

Commit

Permalink
0.5.6, camera app fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tyspa1 committed May 23, 2016
1 parent eea619a commit 2678dff
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ __pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TYOS
0.5.2</br>
0.5.6</br>
A mobile operating system for the TyTelli.

copyright :copyright: 2015 Tyler Spadgenske
Expand Down
12 changes: 6 additions & 6 deletions apps/camera/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ def __init__(self):
self.no_files = False
#Get current photo name index
try:
index_file = open('/home/pi/tyos/apps/camera/index.dat', 'r')
index_file = open('/home/pi/index.dat', 'r')
except:
#Create new file if needed
index_file = open('/home/pi/tyos/apps/camera/index.dat', 'w+')
index_file = open('/home/pi/index.dat', 'w+')
index_file.write('0')
index_file.close()
index_file = open('/home/pi/tyos/apps/camera/index.dat')
print 'NO INDEX FILE. CREATED /home/pi/tyos/apps/camera/index.dat'
index_file = open('/home/pi/index.dat')
print 'NO INDEX FILE. CREATED /home/pi/index.dat'
self.index = int(index_file.readline())
index_file.close()

Expand Down Expand Up @@ -154,8 +154,8 @@ def display(self):
if event.pos[0] > 255:
if self.mode == 'capture':
print 'exiting...'
os.remove('/home/pi/tyos/apps/camera/index.dat')
new = open('/home/pi/tyos/apps/camera/index.dat', 'w+')
os.remove('/home/pi/index.dat')
new = open('/home/pi/index.dat', 'w+')
new.write(str(self.index))
new.close()
cam = Popen(['sudo', 'python', '/home/pi/tyos/src/main.py'])
Expand Down
Binary file added apps/camera/yuv2rgb.so
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
current version of TYOS. If higher, you can update. To get your version of TYOS run the command
sudo python /home/pi/tyos/src/main.py --version
'''
VERSION = '0.5.4'
VERSION = '0.5.6'

#Set to True if you do not want the time modified off the FONA
USE_RAW_TIME = False
Expand Down

0 comments on commit 2678dff

Please sign in to comment.