Code modernization

This commit is contained in:
2015-01-16 17:55:56 -05:00
parent d99d27e080
commit 7413a23886
3 changed files with 8 additions and 8 deletions

View File

@@ -70,13 +70,13 @@ namespace WeatherService.Devices
_valueList = new Dictionary<WeatherValueType, Value>();
// Store properties of the device
_deviceAddress = device.ID.Name;
_deviceAddress = device.Id.Name;
_deviceType = deviceType;
_session = session;
_device = device;
// Default the display name
_displayName = device.ID.Name;
_displayName = device.Id.Name;
// Default the read interval
if (Type == DeviceType.WindDirection || Type == DeviceType.WindSpeed)

View File

@@ -152,7 +152,7 @@ namespace WeatherService.Devices
PrepPioForWrite();
owAdapter.Select(_writeDevice.ID);
owAdapter.Select(_writeDevice.Id);
data[dataCount++] = ChannelAccessCommand;
data[dataCount++] = ConfigWrite;
@@ -172,7 +172,7 @@ namespace WeatherService.Devices
PrepPioForRead();
owAdapter.Select(_readDevice.ID);
owAdapter.Select(_readDevice.Id);
data[dataCount++] = ChannelAccessCommand;
data[dataCount++] = ConfigRead;
@@ -192,7 +192,7 @@ namespace WeatherService.Devices
PrepPioForWrite();
owAdapter.Select(_readDevice.ID);
owAdapter.Select(_readDevice.Id);
data[dataCount++] = ChannelAccessCommand;
data[dataCount++] = ConfigPulseRead;