diff options
-rw-r--r-- | apps/plugins/blackjack.c | 2 | ||||
-rw-r--r-- | apps/plugins/random_folder_advance_config.c | 2 | ||||
-rw-r--r-- | apps/plugins/starfield.c | 2 | ||||
-rw-r--r-- | apps/plugins/stats.c | 4 | ||||
-rw-r--r-- | firmware/drivers/serial.c | 2 | ||||
-rw-r--r-- | firmware/drivers/tuner/ipod_remote_tuner.c | 4 | ||||
-rw-r--r-- | firmware/usbstack/usb_storage.c | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c index 9096673bba..a7876c6e12 100644 --- a/apps/plugins/blackjack.c +++ b/apps/plugins/blackjack.c | |||
@@ -701,7 +701,7 @@ static void update_total(struct game_context* bj) { | |||
701 | static signed int check_for_aces(struct card temp_cards[], unsigned int size) { | 701 | static signed int check_for_aces(struct card temp_cards[], unsigned int size) { |
702 | unsigned int i; | 702 | unsigned int i; |
703 | for(i = 0; i < size; i++) { | 703 | for(i = 0; i < size; i++) { |
704 | if (temp_cards[i].is_soft_ace == true) | 704 | if (temp_cards[i].is_soft_ace) |
705 | return i; | 705 | return i; |
706 | } | 706 | } |
707 | return -1; | 707 | return -1; |
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index 36b9ebfcbf..5f837980d3 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c | |||
@@ -70,7 +70,7 @@ void traversedir(char* location, char* name) | |||
70 | if (dir) { | 70 | if (dir) { |
71 | entry = rb->readdir(dir); | 71 | entry = rb->readdir(dir); |
72 | while (entry) { | 72 | while (entry) { |
73 | if (abort == true) | 73 | if (abort) |
74 | break; | 74 | break; |
75 | /* Skip .. and . */ | 75 | /* Skip .. and . */ |
76 | if (entry->d_name[0] == '.') | 76 | if (entry->d_name[0] == '.') |
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c index 0da3305a6f..01d0acfb4a 100644 --- a/apps/plugins/starfield.c +++ b/apps/plugins/starfield.c | |||
@@ -389,7 +389,7 @@ int plugin_main(void) | |||
389 | ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F))) | 389 | ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F))) |
390 | 390 | ||
391 | /* This will make the stars pulse to the music */ | 391 | /* This will make the stars pulse to the music */ |
392 | if(pulse==true){ | 392 | if(pulse){ |
393 | 393 | ||
394 | /* Get the peaks. ( Borrowed from vu_meter ) */ | 394 | /* Get the peaks. ( Borrowed from vu_meter ) */ |
395 | #if (CONFIG_CODEC == SWCODEC) | 395 | #if (CONFIG_CODEC == SWCODEC) |
diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c index d3cf9dc5a7..b928c0c4db 100644 --- a/apps/plugins/stats.c +++ b/apps/plugins/stats.c | |||
@@ -164,7 +164,7 @@ void traversedir(char* location, char* name) | |||
164 | if (dir) { | 164 | if (dir) { |
165 | entry = rb->readdir(dir); | 165 | entry = rb->readdir(dir); |
166 | while (entry) { | 166 | while (entry) { |
167 | if (abort == true) | 167 | if (abort) |
168 | break; | 168 | break; |
169 | /* Skip .. and . */ | 169 | /* Skip .. and . */ |
170 | if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) | 170 | if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) |
@@ -227,7 +227,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
227 | lasttick = *rb->current_tick; | 227 | lasttick = *rb->current_tick; |
228 | 228 | ||
229 | traversedir("", ""); | 229 | traversedir("", ""); |
230 | if (abort == true) { | 230 | if (abort) { |
231 | rb->splash(HZ, "Aborted"); | 231 | rb->splash(HZ, "Aborted"); |
232 | return PLUGIN_OK; | 232 | return PLUGIN_OK; |
233 | } | 233 | } |
diff --git a/firmware/drivers/serial.c b/firmware/drivers/serial.c index 30e5f33900..eb2df9890b 100644 --- a/firmware/drivers/serial.c +++ b/firmware/drivers/serial.c | |||
@@ -416,7 +416,7 @@ void SERIAL0(void) | |||
416 | } | 416 | } |
417 | } | 417 | } |
418 | bool pkt = iap_getc(temp); | 418 | bool pkt = iap_getc(temp); |
419 | if(newpkt == true && pkt == false) | 419 | if(newpkt && !pkt) |
420 | autobaud = 0; /* Found good baud */ | 420 | autobaud = 0; /* Found good baud */ |
421 | newpkt = pkt; | 421 | newpkt = pkt; |
422 | } | 422 | } |
diff --git a/firmware/drivers/tuner/ipod_remote_tuner.c b/firmware/drivers/tuner/ipod_remote_tuner.c index 07a5eeb9a6..82357593d4 100644 --- a/firmware/drivers/tuner/ipod_remote_tuner.c +++ b/firmware/drivers/tuner/ipod_remote_tuner.c | |||
@@ -300,7 +300,7 @@ int ipod_rmt_tuner_set(int setting, int value) | |||
300 | case RADIO_FREQUENCY: | 300 | case RADIO_FREQUENCY: |
301 | { | 301 | { |
302 | rmt_tuner_set_freq(value); | 302 | rmt_tuner_set_freq(value); |
303 | if (reply_timeout() == true) | 303 | if (reply_timeout()) |
304 | return 0; | 304 | return 0; |
305 | break; | 305 | break; |
306 | } | 306 | } |
@@ -326,7 +326,7 @@ int ipod_rmt_tuner_set(int setting, int value) | |||
326 | else | 326 | else |
327 | rmt_tuner_scan(1); | 327 | rmt_tuner_scan(1); |
328 | 328 | ||
329 | if (reply_timeout() == true) | 329 | if (reply_timeout()) |
330 | return 0; | 330 | return 0; |
331 | radio_tuned = 0; | 331 | radio_tuned = 0; |
332 | } | 332 | } |
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 3f3baa383c..f84cd4eefe 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -356,7 +356,7 @@ void usb_storage_try_release_storage(void) | |||
356 | bool canrelease=true; | 356 | bool canrelease=true; |
357 | int i; | 357 | int i; |
358 | for(i=0;i<storage_num_drives();i++) { | 358 | for(i=0;i<storage_num_drives();i++) { |
359 | if(ejected[i]==false && locked[i]==true) { | 359 | if(!ejected[i] && locked[i]) { |
360 | canrelease=false; | 360 | canrelease=false; |
361 | break; | 361 | break; |
362 | } | 362 | } |