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
|
||||
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::endl;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
struct thresholdContext {
|
||||
long averageReading;
|
||||
long runningAverage;
|
||||
unsigned long runningAverage;
|
||||
int averagedOver;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user