Commit Graph

188 Commits

Author SHA1 Message Date
fb37433057 Add logging switches to cmake 2020-07-05 11:38:48 +02:00
564e5798a5 Check sensor error after trying to read 2020-07-05 11:28:28 +02:00
cfe92d580e Rename log file 2020-07-05 11:24:49 +02:00
1c1721c720 Improve logging to only log successful sensor enumerations 2020-07-05 11:24:09 +02:00
4469cfb114 Fix unused variable warning 2020-07-05 11:16:26 +02:00
9099b4ead3 Add flag to log source location 2020-07-05 11:14:46 +02:00
3a88377f1d Add ability to check if sensor had an error 2020-07-05 11:13:41 +02:00
f2a8f47958 Add baud rate comment 2020-07-05 10:58:01 +02:00
d5e4bc93b2 Make serial port name const 2020-07-05 10:56:45 +02:00
05030e5d80 Refactor sensor checking to sensor class 2020-07-05 00:50:09 +02:00
7db21d34a4 Add separator between sensor and driver 2020-07-05 00:38:50 +02:00
728cb50a1e Implement reading sensor values 2020-07-05 00:36:53 +02:00
6244f6f8ae Implement reading range of sensor 2020-07-05 00:32:01 +02:00
98d6860aec Change sensor creation log level to info 2020-07-05 00:14:42 +02:00
03de89be11 Reduce serial timeout 2020-07-05 00:14:14 +02:00
018905bc4c Remove debug serial port enumeration 2020-07-05 00:13:59 +02:00
fe49bee4c4 Disable debug logging in release build 2020-07-05 00:13:20 +02:00
7c54a080d1 Implement checking sensor version 2020-07-04 22:59:47 +02:00
6c50eb6f84 Remove unnecessary initial read and reduce timeout 2020-07-04 22:39:37 +02:00
dad6f0835f Implement sending command and receiving response from sensor 2020-07-04 22:37:59 +02:00
c86ec41b75 Make logging of source function optional 2020-07-04 18:08:38 +02:00
4a2590ff0e Move log_tr implementation to separate translation unit 2020-07-04 18:03:06 +02:00
f22108fe03 Add convenience wrapper for log translation 2020-07-04 17:42:11 +02:00
a848ed4894 Define basic sensor interface 2020-07-04 17:04:18 +02:00
0a7ff9ef71 Initialize timer pointer 2020-07-04 16:44:58 +02:00
e506845fdb Rename main window class 2020-07-04 16:44:14 +02:00
2b847a3e78 Add main window debug logging 2020-07-04 16:41:47 +02:00
c9917a055c Add sensor driver structure 2020-07-04 16:40:16 +02:00
17192e104d Add logging and handle tray icon not being available 2020-07-04 16:31:13 +02:00
49e0b498fe Ignore msvc resource cache 2020-07-04 16:30:01 +02:00
7310d212e6 Add logging to file 2020-07-04 16:17:03 +02:00
015ab15a02 Remove useless receiving flag and fix overflow protection 2020-07-04 12:58:23 +02:00
065cf1f0c3 Make startup color white 2020-07-03 22:53:35 +02:00
6c3a8f3705 Add command to get sensor range 2020-07-03 22:40:35 +02:00
9fbba7908e Add git attribute to force LF line endings for assembly files 2020-07-03 22:35:46 +02:00
9a157f93ae Add machine readable read command 2020-07-03 22:34:10 +02:00
05611c0697 Add debug LED status light 2020-07-03 22:23:06 +02:00
7868d2f7b7 Add timeout to ADC to stop infinite loop 2020-07-03 21:50:29 +02:00
bc75971fc8 Fix missing early exit for empty flush 2020-07-03 20:54:39 +02:00
09316e0e6f Use defined buffer sizes 2020-07-03 20:54:12 +02:00
51bd0c5621 Add DEBUG and NDEBUG preprocessor defines 2020-07-03 20:53:06 +02:00
3109678551 Fix deleting of callbacks on de-init 2020-07-03 19:53:42 +02:00
7363926f64 Improve sensor printing format 2020-07-03 18:58:54 +02:00
608f29e81b Integrate terminal and implement read sensor command 2020-07-03 18:45:04 +02:00
5a26169539 Refactor light sensor 2020-07-03 18:34:39 +02:00
29e4c62e6e Remove debugging code and move TX indicator to actual TX 2020-07-03 18:19:36 +02:00
ed5c5b57c9 Add initialization loop on error 2020-07-03 18:14:46 +02:00
45fec64559 Refactor hardware initialization 2020-07-03 17:44:02 +02:00
7769c97286 Keep reading pointer const 2020-07-03 17:39:00 +02:00
f0ecb8edfd Fix data corruption in vcp 2020-07-03 17:35:33 +02:00