mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
mic: fix sign comparison warnings
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
8da9f28157
commit
630d12d963
@ -100,7 +100,7 @@ Microphone::findThreshold (thresholdContext* ctx, unsigned int threshold,
|
|||||||
|
|
||||||
void
|
void
|
||||||
Microphone::printGraph (thresholdContext* ctx) {
|
Microphone::printGraph (thresholdContext* ctx) {
|
||||||
for (int i = 0; i < ctx->runningAverage; i++)
|
for (unsigned int i = 0; i < ctx->runningAverage; i++)
|
||||||
std::cout << ".";
|
std::cout << ".";
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
struct thresholdContext {
|
struct thresholdContext {
|
||||||
long averageReading;
|
long averageReading;
|
||||||
long runningAverage;
|
unsigned long runningAverage;
|
||||||
int averagedOver;
|
int averagedOver;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user