Use bool type instead of int

Otherwise we crash like

    Librem5/virtboard!18 (comment 7906)
1 job for bool-is-not-int in 1 minute and 7 seconds (queued for 1 second)
latest
Status Name Job ID Coverage
  Build
passed build-native #3060
librem5

00:01:07