diff options
Diffstat (limited to 'firmware')
-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 |
3 files changed, 4 insertions, 4 deletions
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 | } |