Changeset 7c05959 in buchla-68k
- Timestamp:
- 11/12/2017 07:45:44 PM (7 years ago)
- Branches:
- master
- Children:
- 4b63bf3
- Parents:
- a8b81c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/etmcfn.c
ra8b81c2 r7c05959 45 45 return(FAILURE); 46 46 47 vbufs[curvce].idhcfg = tmpval;47 vbufs[curvce].idhcfg = (int8_t)tmpval; 48 48 dosync(curvce); 49 49 wmctag = TRUE; … … 84 84 85 85 ec = stccol - cfetp->flcol; /* setup edit buffer column */ 86 ebuf[ec] = k + '0';/* enter new data in buffer */86 ebuf[ec] = (int8_t)(k + '0'); /* enter new data in buffer */ 87 87 ebuf[2] = '\0'; /* make sure string is terminated */ 88 88 89 dspbuf[0] = k + '0';/* setup for display */89 dspbuf[0] = (int8_t)(k + '0'); /* setup for display */ 90 90 dspbuf[1] = '\0'; 91 91 … … 110 110 int16_t et_mwsn(int16_t nn) 111 111 { 112 wmcsel = (nn & 0xFF00) ? 1 : 0;112 wmcsel = (nn & (int16_t)0xFF00) ? 1 : 0; 113 113 114 114 sprintf(ebuf, "%02d", 1 + (wmcsel ? vbufs[curvce].idhwsb … … 131 131 volatile uint16_t *fpuws; 132 132 133 wmcsel = (nn & 0xFF00) ? 1 : 0;133 wmcsel = (nn & (int16_t)0xFF00) ? 1 : 0; 134 134 135 135 wmctag = FALSE; … … 147 147 148 148 /* slot B */ 149 vbufs[curvce].idhwsb = tmpval - 1;149 vbufs[curvce].idhwsb = (int8_t)(tmpval - 1); 150 150 151 151 memcpyw(vbufs[curvce].idhwvbf, &wslib[tmpval - 1], … … 156 156 memcpyw(fpuws, vbufs[curvce].idhwvbf, NUMWPNT); 157 157 158 *(fpuws - 1) = vbufs[curvce].idhwvbf[0];159 *(fpuws + NUMWPNT) = vbufs[curvce].idhwvbf[NUMWPNT - 1];158 *(fpuws - 1) = (uint16_t)vbufs[curvce].idhwvbf[0]; 159 *(fpuws + NUMWPNT) = (uint16_t)vbufs[curvce].idhwvbf[NUMWPNT - 1]; 160 160 161 161 } else { … … 163 163 /* slot A */ 164 164 165 vbufs[curvce].idhwsa = tmpval - 1;165 vbufs[curvce].idhwsa = (int8_t)(tmpval - 1); 166 166 167 167 memcpyw(vbufs[curvce].idhwvaf, &wslib[tmpval - 1], … … 172 172 memcpyw(fpuws, vbufs[curvce].idhwvaf, NUMWPNT); 173 173 174 *(fpuws - 1) = vbufs[curvce].idhwvaf[0];175 *(fpuws + NUMWPNT) = vbufs[curvce].idhwvaf[NUMWPNT - 1];174 *(fpuws - 1) = (uint16_t)vbufs[curvce].idhwvaf[0]; 175 *(fpuws + NUMWPNT) = (uint16_t)vbufs[curvce].idhwvaf[NUMWPNT - 1]; 176 176 } 177 177 … … 188 188 int16_t rd_mwsn(int16_t nn) 189 189 { 190 wmcsel = (nn & 0xFF00) ? 1 : 0;190 wmcsel = (nn & (int16_t)0xFF00) ? 1 : 0; 191 191 192 192 sprintf(dspbuf, "%02d", 1 + (wmcsel ? vbufs[curvce].idhwsb … … 214 214 215 215 ec = stccol - cfetp->flcol; /* setup edit buffer column */ 216 ebuf[ec] = k + '0';/* enter new data in buffer */216 ebuf[ec] = (int8_t)(k + '0'); /* enter new data in buffer */ 217 217 ebuf[2] = '\0'; /* make sure string is terminated */ 218 218 219 dspbuf[0] = k + '0';/* setup for display */219 dspbuf[0] = (int8_t)(k + '0'); /* setup for display */ 220 220 dspbuf[1] = '\0'; 221 221
Note:
See TracChangeset
for help on using the changeset viewer.