2017_hongo_Bteam
Revision 2:503337abcb4a, committed 2017-08-30
- Comitter:
- Komazawa_sun
- Date:
- Wed Aug 30 05:13:49 2017 +0000
- Parent:
- 1:a2572a29fe59
- Commit message:
- beta_pool; ;
Changed in this revision
BetaPool.h | Show annotated file Show diff for this revision Revisions of this file |
BetaTransporter.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BetaPool.h Fri Aug 25 07:37:05 2017 +0000 +++ b/BetaPool.h Wed Aug 30 05:13:49 2017 +0000 @@ -11,7 +11,7 @@ union i2c_jusinkun_data //from jushinkun_datas { - char all_data[9]; + char all_data[10]; struct { unsigned char start_byte:8; @@ -23,19 +23,19 @@ unsigned int r_sw3 :1; unsigned int r_sw4 :1; unsigned int r_s_sw1 :1; - //unsigned int r_s_sw2 :1; + unsigned int r_s_sw2 :1; unsigned int l_sw1 :1; unsigned int l_sw2 :1; unsigned int l_sw3 :1; unsigned int l_sw4 :1; unsigned int l_s_sw1 :1; - //unsigned int l_s_sw2 :1; + unsigned int l_s_sw2 :1; unsigned int mode1 :1; unsigned int mode2 :1; signed int r_srd :8; - //signed int l_srd :8; - //unsigned int no_data :2; - unsigned int no_data :4; + signed int l_srd :8; + unsigned int no_data :2; + //unsigned int no_data :4; unsigned char checksum:8; unsigned char stop_byte :8; };
--- a/BetaTransporter.cpp Fri Aug 25 07:37:05 2017 +0000 +++ b/BetaTransporter.cpp Wed Aug 30 05:13:49 2017 +0000 @@ -11,7 +11,7 @@ { bool no_error = true; - i2c.transport_begin(JUSHINKUN_ADDR, pool.ctrl.all_data, 9); + i2c.transport_begin(JUSHINKUN_ADDR, pool.ctrl.all_data, 10); no_error = no_error & i2c.read(); i2c.transport_end();