- Timestamp:
- 11/12/2017 08:12:57 PM (7 years ago)
- Branches:
- master
- Children:
- f70aaad
- Parents:
- 2da8254
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/localkb.c
r2da8254 ra4bd34f 58 58 void setleds(void) 59 59 { 60 registerint16_t i;60 int16_t i; 61 61 62 62 for (i = 0; i < 24; i++) /* turn off all LEDs */ 63 io_leds = 0x0080 | i;63 io_leds = (uint8_t)(0x0080 | i); 64 64 65 65 switch (pkctrl) { … … 77 77 io_leds = 0x01; 78 78 79 io_leds = 6 - stepwgt;80 io_leds = 7 + stepint;79 io_leds = (uint8_t)(6 - stepwgt); 80 io_leds = (uint8_t)(7 + stepint); 81 81 return; 82 82 … … 86 86 return; 87 87 88 io_leds = ( curasg - 1) % 20; /* indicate current assignment */88 io_leds = (uint8_t)((curasg - 1) % 20); /* indicate current assignment */ 89 89 return; 90 90 … … 95 95 for (i = 0; i < 20; i++) 96 96 if (E_NULL NE seclist[curscor][i]) 97 io_leds = i;97 io_leds = (uint8_t)i; 98 98 99 99 } else { /* indicate active scores */ … … 101 101 for (i = 0; i < 20; i++) 102 102 if (E_NULL NE scores[i]) 103 io_leds = i;103 io_leds = (uint8_t)i; 104 104 } 105 105 … … 110 110 for (i = 0; i < 20; i++) 111 111 if (E_NULL NE scores[i]) 112 io_leds = i;112 io_leds = (uint8_t)i; 113 113 114 114 return; … … 147 147 keystat[key] = 1; 148 148 149 stmproc( trg); /* process as a patch stimulus */149 stmproc((uint16_t)trg); /* process as a patch stimulus */ 150 150 151 151 if (editsw) { /* edit mode */ … … 182 182 ep->e_time = t_cur; 183 183 ep->e_type = EV_ANVL; 184 ep->e_data1 = 0x0050 | i;184 ep->e_data1 = (int8_t)(0x0050 | i); 185 185 ep->e_dn = (struct s_entry *)((int32_t)val << 16); 186 186 p_cur = e_ins(ep, ep_adj(p_cur, 0, t_cur))->e_fwd; … … 220 220 } 221 221 222 stmproc(0x8000 | trg); /* process as a patch stimulus */ 222 /* process as a patch stimulus */ 223 stmproc(0x8000 | (uint16_t)trg); 223 224 } 224 225 }
Note:
See TracChangeset
for help on using the changeset viewer.