mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
Fix type warnings
This commit is contained in:
parent
a88454dded
commit
2443e5903c
|
@ -184,7 +184,7 @@ void Sensor::load(){
|
||||||
struct SensorData data;
|
struct SensorData data;
|
||||||
Sensor *tt;
|
Sensor *tt;
|
||||||
|
|
||||||
for(int i=0;i<EEStore::eeStore->data.nSensors;i++){
|
for(uint16_t i=0;i<EEStore::eeStore->data.nSensors;i++){
|
||||||
EEPROM.get(EEStore::pointer(),data);
|
EEPROM.get(EEStore::pointer(),data);
|
||||||
tt=create(data.snum,data.pin,data.pullUp);
|
tt=create(data.snum,data.pin,data.pullUp);
|
||||||
EEStore::advance(sizeof(tt->data));
|
EEStore::advance(sizeof(tt->data));
|
||||||
|
|
|
@ -103,7 +103,7 @@ void Turnout::load(){
|
||||||
struct TurnoutData data;
|
struct TurnoutData data;
|
||||||
Turnout *tt;
|
Turnout *tt;
|
||||||
|
|
||||||
for(int i=0;i<EEStore::eeStore->data.nTurnouts;i++){
|
for(uint16_t i=0;i<EEStore::eeStore->data.nTurnouts;i++){
|
||||||
EEPROM.get(EEStore::pointer(),data);
|
EEPROM.get(EEStore::pointer(),data);
|
||||||
if (data.tStatus & STATUS_PWM) tt=create(data.id,data.tStatus & STATUS_PWMPIN, data.inactiveAngle,data.moveAngle);
|
if (data.tStatus & STATUS_PWM) tt=create(data.id,data.tStatus & STATUS_PWMPIN, data.inactiveAngle,data.moveAngle);
|
||||||
else tt=create(data.id,data.address,data.subAddress);
|
else tt=create(data.id,data.address,data.subAddress);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user