fix [-Wtype-limits] warning

pull/1344/head
Wodji 2015-09-21 20:08:18 +01:00
parent 37ae865a61
commit 8c7c763d21
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ static LPC_TMR_TypeDef *Timers[3] = {
void pwmout_init(pwmout_t* obj, PinName pin) {
// determine the channel
PWMName pwm = (PWMName)pinmap_peripheral(pin, PinMap_PWM);
MBED_ASSERT(pwm != (uint32_t)NC);
MBED_ASSERT(pwm != (PWMName)NC);
obj->pwm = pwm;