dataflash: fixed some compiler warnings

tmp is not needed

Pair-Programmed-With: Mike Smith

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3230 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-09-04 06:39:14 +00:00
parent b110803dcb
commit 6075b7ce73
1 changed files with 2 additions and 6 deletions

View File

@ -56,8 +56,6 @@ DataFlash_Class::DataFlash_Class()
// Public Methods ////////////////////////////////////////////////////////////// // Public Methods //////////////////////////////////////////////////////////////
void DataFlash_Class::Init(void) void DataFlash_Class::Init(void)
{ {
byte tmp;
pinMode(DF_DATAOUT, OUTPUT); pinMode(DF_DATAOUT, OUTPUT);
pinMode(DF_DATAIN, INPUT); pinMode(DF_DATAIN, INPUT);
pinMode(DF_SPICLOCK,OUTPUT); pinMode(DF_SPICLOCK,OUTPUT);
@ -87,8 +85,6 @@ void DataFlash_Class::Init(void)
// This function is mainly to test the device // This function is mainly to test the device
void DataFlash_Class::ReadManufacturerID() void DataFlash_Class::ReadManufacturerID()
{ {
byte tmp;
dataflash_CS_active(); // activate dataflash command decoder dataflash_CS_active(); // activate dataflash command decoder
// Read manufacturer and ID command... // Read manufacturer and ID command...
@ -97,7 +93,7 @@ void DataFlash_Class::ReadManufacturerID()
df_manufacturer = SPI.transfer(0xff); df_manufacturer = SPI.transfer(0xff);
df_device_0 = SPI.transfer(0xff); df_device_0 = SPI.transfer(0xff);
df_device_1 = SPI.transfer(0xff); df_device_1 = SPI.transfer(0xff);
tmp = SPI.transfer(0xff); SPI.transfer(0xff);
dataflash_CS_inactive(); // Reset dataflash command decoder dataflash_CS_inactive(); // Reset dataflash command decoder
} }