Commit 95466801 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Write bayer to circbuf

parent e708e6fa
......@@ -54,12 +54,18 @@ fi
# debug code follows, should be removed later
# inable interrupts
echo 1 > /dev/circbuf0
# set frame size
# set frame size and bayer shift
if [ $SENSOR_TYPE -eq 5 ]; then
echo "6 2592:1936" > /dev/circbuf0
echo "7 3" > /dev/circbuf0
else
echo "6 4384:3280" > /dev/circbuf0
echo "7 2" > /dev/circbuf0
fi
# turn off debug output
echo file circbuf.c -pfl > /sys/kernel/debug/dynamic_debug/control
echo file sensor_common.c -pfl > /sys/kernel/debug/dynamic_debug/control
echo file jpeghead.c -pfl > /sys/kernel/debug/dynamic_debug/control
# end of debug code
/usr/local/bin/test_mcntrl.py @includes -c compressor_control all 3 None None None None None
......
......@@ -189,6 +189,7 @@ class temp_monitor():
# print "Core temperature: '%f', median: '%f'" % (core_temp, avg)
time.sleep(self.params["temp_sampling_time"])
self.read_temp_params()
self.write_temp_params()
except (KeyboardInterrupt, SystemExit):
self.core_temp_out_f.close()
self.core_temp_params_f.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment